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.0means 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
- adityatelange/hugo-PaperMod#1337
- Use the timetag instead ofspanto express post dates.
Add an option params.showDescription to not display descriptions
- adityatelange/hugo-PaperMod#1533
- .Descriptionis meant to be used for metadata purpose:- Conceptually different from a content summary, a page description is typically used in metadata about the page. 
- Set params.showDescriptiontotrueto display descriptions, orfalseto hide descriptions. Default:false.
Allow setting ShowFullTextinRSS in individual pages
Add an option to exclude pages from the RSS feed
- Setting params.excludeFromRSSto true in the frontmatter of a page to exclude it from the RSS feed.
Allow extending robots.txt
- Content from layouts/partials/extend_robots.txtis appended to the builtinrobots.txtfile.
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
- adityatelange/hugo-PaperMod#1494
- MDN advises not using accesskeys for general purpose websites for various reasons.
- WebAIM also recommends against using accesskeys generally.
Use .Summary as RSS description instead of .Description
- Hugo description is conceptually for metadata about a page. Using .Descriptionin RSS leads to very little information for readers.
Add utm_* params to various places
- The utm_medium=sharingparam is added to the URLs shared by the share buttons.
- The utm_medium=rssparam 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-PaperModwithhttps://github.com/8hobbies/KamiMod.
- Replace all other occurrences of PaperModwithKamiMod.
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.