-
Notifications
You must be signed in to change notification settings - Fork 0
Other features
This theme also adds features, which may come handy when setting up reading experience on your blog:
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"
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
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> <i class=\"fab fa-creative-commons-by\"></i> <i class=\"fab fa-creative-commons-nc\"></i> <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.