hantuzun / hanworthy

A minimalist Hugo theme for writers and bloggers

Home Page:https://themes.gohugo.io/theme/hugo-theme-noteworthy/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hanworthy

Hanworthy is a minimalist Hugo theme for bloggers. Forked from https://github.com/kimcc/hugo-theme-noteworthy.

Noteworthy desktop screenshot

Features

  • Fully responsive
  • Google Analytics and Disqus integration
  • Ko-fi donation button
  • Syntax highlighting
  • Mathematical notations with KaTex
  • About, Tags, and Archives pages
  • RSS feeds
  • Social media links
  • SCSS for styling

Getting Started

Install [Hugo]Hugo.

hugo new site myblog.com
cd myblog.com
git init
git submodule add https://github.com/hantuzun/hanworthy.git themes/hanworthy
echo 'theme = "hanworthy"' >> config.toml
hugo new posts/hello-world.md
hugo server -D

Navigate to your new blog at http://localhost:1313/.

Image shortcode for large images

To add images using the resize-image shortcode included with this theme, you will need to create a Post Bundle. Create a folder for your post, put your Markdown file and images inside, and rename your Markdown file index.md. For example:

my-new-post
- index.md
- image1.jpg
- image2.png

Then, you can add an image within your Markdown file by using the shortcode like this:

{{< resize-image src="image1.jpg" alt="My first image" >}}

Add captions like this:

{{< resize-image src="image2.png" alt="My second image" caption="My caption" >}}

Read more link for posts

Set showReadMore = false to true in the config file to have a "read more" link show up when posts are truncated.

Social media accounts

In the params section of the config.toml file, you can add links to your social media accounts. Simply remove the ones that you don't want to include, and their icons will disappear from the site.

# Main
email = "#"
facebook = "#"
twitter = "#"
instagram = "#"
tumblr = "#"
reddit = "#"
pinterest = "#"
youtube = "#"
vimeo = "#"
weibo = "#"
vk = "#"
linkedin = "#"

# Writing
medium = "#"
blogger = "#"
wordpress = "#"

# Creative & Visual
dribbble = "#"
behance = "#"
deviantart = "#"
flickr = "#"

# Audio & Music
soundcloud = "#"

# Programming
github = "#"
stackoverflow = "#"
gitlab = "#"
codepen = "#"

# Academic
googlescholar = "#"
impactstory = "#"
orcid = "#"

# Travel
googlemaps = "#"
tripadvisor = "#"

Disqus and Google Analytics

Add your Disqus shortname and Google Analytics identifier in the config.toml file.

# Add your Disqus shortname here.
disqusShortname = ""

# Add your Google Analytics identifier: UA-XXXXXXXX-X
googleAnalytics = ""

Ko-fi donation button

If you'd like to enable a Ko-fi button on your posts, enable it in the config file and add your identifier.

# Set enableKofi to true to enable the Ko-fi support button. Add your Ko-fi ID to link to your account.
enableKofi = true
kofi = ""

License

Released under the MIT License.

About

A minimalist Hugo theme for writers and bloggers

https://themes.gohugo.io/theme/hugo-theme-noteworthy/

License:MIT License


Languages

Language:HTML 79.2%Language:CSS 10.3%Language:SCSS 10.1%Language:JavaScript 0.4%