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

  1. 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
    
  2. 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>
    
  3. How do I add a citation note at the 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 the single.html layout template slightly to include this partial template. Further I have made this change conditional on the meta data disableCitation: 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
    
  4. How do enable citing work using my Zotero library?

    Adding citations is not quite as simple as it might initially seem. There is no built-in system or support for Pandoc Citeproc (yet). Eventually, I decided to use Hugo-cite. I have adapted the original code slightly for my purposes: see the adapted fork here. The references below provide more details on why other approaches are difficult to implement:

  5. 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/.

  6. How can one add last modification data to posts?

    I found the approach described by Jackson Lucky works well.