On this short page I describe some of the tweaks I used to set up this Hugo PaperMod site. This page also serves as a reminder to myself about what I did.
FAQ
-
How can I easily change the size of images?
You need to allow unsafe rendering in the markdown renderer. As I am the only person adding and adapting content on this page this seemed to me to be a sensible thing to do. Please correct me if I am wrong. This change can be done in the
config.yaml
file using:markup: goldmark: renderer: unsafe: true
-
How do I get links in the subtitle on the main (landing) profile page to be underlined?
By default these links are not underlined. This can be changed using the following code to add links (once unsafe rendering with html is allowed as explained before):
<a style='text-decoration:underline;' href='LINKURL'>link</a>
-
How do I add a citation note at end of all blog posts?
I used the advice described in this forum discussion to set the citation note up. First I added a partial template similar to the once described in the link, and named it
blog-citation.html
, and then adapted thesingle.html
layout template slightly to include this partial template. Further I have made this change conditional on the meta datadisableCitation: true
no being there.If you using VS Code, you may need to enable templating in your html to be able to add whitespace to string (which you probably want to do for indenting the bibtex entry). This change can be done using the setting:
"html.format.templating": true
-
How do enable citing work using my Zotero library?
This is not quite as simple as it might initially seem. There is not bult-in support. There is not direct support for Pandoc Citeproc (yet).
https://discourse.gohugo.io/t/how-can-i-manage-a-publication-list-in-hugo-preferrably-from-bibtex-file/2089 https://discourse.gohugo.io/t/bibtex-support/8879 https://discourse.gohugo.io/t/parsing-bibtex/32283
Eventually, I decided to use Hugo-cite.
-
What go templating functions can I use?
Looking up Hugo functions can be confusing as they overlap with standard go templating functions. The functions that can be used with this setup are enumerated here: https://gohugo.io/functions/.