hugo-theme-noteworthy/README.md

134 lines
2.9 KiB
Markdown
Raw Permalink Normal View History

2020-02-02 17:13:02 +00:00
# Noteworthy
Noteworthy is a minimalist Hugo theme for writers and bloggers.
![Noteworthy desktop screenshot](https://github.com/kimcc/hugo-theme-noteworthy/blob/master/images/screenshot.png)
## Features
* Fully responsive
* Google Analytics and Disqus integration
2020-04-18 05:15:49 +00:00
* Ko-fi donation button
2020-02-02 17:13:02 +00:00
* Syntax highlighting
* Mathematical notations with KaTex
* About, Tags, and Archives pages
* RSS feeds
* Social media links
* SCSS for styling
## Installation
Navigate to the root directory of your Hugo site and clone this repository.
```
git clone https://github.com/kimcc/hugo-theme-noteworthy.git themes/noteworthy
```
Refer to the [Hugo docs](https://gohugo.io/getting-started/quick-start/) for more information.
## Image shortcode for large images
2020-08-01 14:31:05 +00:00
To add images using the resize-image shortcode included with this theme, you will need to create a [Post Bundle](https://gohugo.io/content-management/organization/#page-bundles). 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
```
2020-04-18 05:15:49 +00:00
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" >}}
```
2020-08-01 14:31:05 +00:00
Add captions like this:
```
{{< resize-image src="image2.png" alt="My second image" caption="My caption" >}}
```
2020-02-02 17:13:02 +00:00
2020-04-18 05:15:49 +00:00
## 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.
2020-02-02 17:13:02 +00:00
## 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
2020-02-10 03:56:17 +00:00
email = "#"
facebook = "#"
twitter = "#"
instagram = "#"
tumblr = "#"
reddit = "#"
pinterest = "#"
youtube = "#"
2020-04-18 05:15:49 +00:00
vimeo = "#"
2020-02-10 03:56:17 +00:00
weibo = "#"
vk = "#"
linkedin = "#"
2020-02-02 17:13:02 +00:00
# Writing
2020-02-10 03:56:17 +00:00
medium = "#"
blogger = "#"
wordpress = "#"
2020-02-02 17:13:02 +00:00
# Creative & Visual
2020-02-10 03:56:17 +00:00
dribbble = "#"
behance = "#"
deviantart = "#"
flickr = "#"
2020-02-02 17:13:02 +00:00
2020-04-18 05:15:49 +00:00
# Audio & Music
soundcloud = "#"
2020-02-02 17:13:02 +00:00
# Programming
2020-02-10 03:56:17 +00:00
github = "#"
stackoverflow = "#"
gitlab = "#"
codepen = "#"
2020-04-18 05:15:49 +00:00
# Academic
googlescholar = "#"
impactstory = "#"
2020-08-01 14:31:05 +00:00
orcid = "#"
# Travel
googlemaps = "#"
tripadvisor = "#"
2020-02-02 17:13:02 +00:00
```
## Disqus and Google Analytics
Add your Disqus shortname and Google Analytics identifier in the `config.toml` file.
```
# Add your Disqus shortname here.
2020-08-01 14:31:05 +00:00
disqusShortname = ""
2020-02-02 17:13:02 +00:00
# Add your Google Analytics identifier: UA-XXXXXXXX-X
2020-08-01 14:31:05 +00:00
googleAnalytics = ""
2020-02-02 17:13:02 +00:00
```
## 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.
```
2020-04-18 05:15:49 +00:00
# Set enableKofi to true to enable the Ko-fi support button. Add your Ko-fi ID to link to your account.
enableKofi = true
kofi = ""
```
2020-02-02 17:13:02 +00:00
## License
2020-08-01 14:31:05 +00:00
Released under the [MIT License](https://github.com/kimcc/hugo-theme-noteworthy/blob/master/LICENSE.md).