Skip to content

Other features

Ram Iyer edited this page Jan 24, 2021 · 1 revision

Other features the theme supports

This theme also adds features, which may come handy when setting up reading experience on your blog:

Git information

You can add Git-related information to your posts (showing when the post was last updated, and the link to the commit). To do this, build the site using the --enableGitInfo switch, or add the enableGitInfo parameter to your site config:

enableGitInfo = true

By default, this will not link the updates to the commit on the remote. To enable commit linking, add another parameter, called commitUrl to your site params.

[params]
    commitUrl = "https://gitlab.com/nasty-gollum/my-precious/-/commit"

Automatic attribution

If you would like to enable automatic attribution when someone copy-pastes content from your posts, use the EnableAutoAttribution parameter. Set this up in your site config using:

[params]
    EnableAutoAttribution = true

Customised copyright

You can customise the rights that readers have on your content, along with the copyright message. By default, it would show the site author name. If you would rather like that, set up the site author:

[author]
    name = "Nasty Gollum"

You can customise the copyright message and type using the copyright data under site parameters:

[params]
    [params.copyright]
        icon = "<i class="far fa-copyright"></i>"
        message = "Nasty Gollum. All rights reserved"

If you are like me, you could free your content a little more:

[params.copyright]
  icon = "<i class=\"fab fa-creative-commons\"></i>&thinsp;<i class=\"fab fa-creative-commons-by\"></i>&thinsp;<i class=\"fab fa-creative-commons-nc\"></i>&thinsp;<i class=\"fab fa-creative-commons-sa\"></i>"
  message = "[Ram's blog](https://blog.ramiyer.me) by [Ram Iyer](https://ramiyer.me) is licensed under a [Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License](http://creativecommons.org/licenses/by-nc-sa/4.0/)."

Yes, message uses Markdown.