Skip to content

8hobbies/KamiMod

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KamiMod: An Incremental PaperMod Fork

KamiMod makes a few incremental changes to PaperMod. This fork regularly syncs up with PaperMod.

Features

This theme adds the following features and quality improvements on top of PaperMod. They are features or improvements that have been left unmerged from PaperMod.

Show Related Posts

  • Corresponding to adityatelange/hugo-PaperMod#1049, with different implementation.
  • Configurable via params.RelatedPostsCount. 0 means no related posts. A positive number indicates the maximum number of related posts appended to the end of each post. Default: 0.
  • See the Hugo doc for further configuration of the behavior of related posts.

Add last modified date to post header

Add an option params.showDescription to not display descriptions

Allow setting ShowFullTextinRSS in individual pages

Add an option to exclude pages from the RSS feed

  • Setting params.excludeFromRSS to true in the frontmatter of a page to exclude it from the RSS feed.

Allow extending robots.txt

  • Content from layouts/partials/extend_robots.txt is appended to the builtin robots.txt file.

Set preferred name for serach engines

Google relies the WebSite structured data to find out the site name and homepage URL.

Allow specifying alternateName in the WebSite structured data

alternateName is used by Google to select a name of the site. In addition to title, you can specify alternate site names in params.alternateSiteNames:

params:
  alternateSiteNames: ["Name1", "Name2"]

Fixes and Changes

<image><link> in RSS should link to the permalink

Remove the use of accesskey to improve accessibility

Use .Summary as RSS description instead of .Description

Add utm_* params to various places

  • The utm_medium=sharing param is added to the URLs shared by the share buttons.
  • The utm_medium=rss param is added to the RSS links.

Don't show an output format as <link rel=...> if rel is empty

  • Many custom output formats don't need such a link element.

Installation

You may follow the installation instructions from PaperMod, with the following changes:

  • Replace https://github.com/adityatelange/hugo-PaperMod with https://github.com/8hobbies/KamiMod.
  • Replace all other occurrences of PaperMod with KamiMod.

Configurations

Except for the features listed above, please follow the PaperMod doc for configurations.

Demo

There is also a live demo, along with its source code.

Contribution

If you would like to report a bug, please use the GitHub issue tracker. Since KamiMod is an incremental fork of PaperMod, it is highly recommended to report to PaperMod if applicable.

If you would like to make code contribution, please make a pull request to PaperMod first if applicable. If the pull request does not get merged in a reasonable amount of time, feel free to port the pull request here. To maintain the incremental nature of this project, we will not consider pull requests that are applicable to PaperMod if they haven't been submitted to PaperMod first.