RSS

Posts in 2023

  • Demystifying Hugo Shortcodes: Your Ultimate Guide

    Last Update: in Hugo

    Demystifying Hugo Shortcodes: Your Ultimate Guide. A list of useful hugo shortcodes.

    What is Hugo Hugo is one of the most popular open-source static site generators. With its amazing speed and flexibility, Hugo makes building websites fun again. If you’re a web developer or a blogger using Hugo, you’ve probably heard of …

    Read more

  • Hugo: How to escape shortcode in markdown

    Last Update: in Hugo

    Hugo: How to escape shortcode in markdown to display as literal text.

    Problem with shortcode like text in Hugo markdown In Hugo markdown, if you have some text wrapped by curly brackets likes following: Today: {{%m%d%y}} You will receive an error similar to the following: Error: Error building site: …

    Read more

Posts in 2021

  • Add comments to Static blog like Hugo, Jekyll with Isso

    Last Update: in Hugo

    How to add comments in Hugo with Isso commenting server? The setup should work with other static blog system like Jekyll, next.js, Gatsby, Nuxt, Hexo, Slate, Docusaurus, VuePress, Docsify, MkDocs etc. in similar way. Get to know more depth about Isso API and database schema.

    Isso Introduction Isso is a Disqus alternative commenting server for static web sites. It is a lightweight commenting server written in Python and JavaScript. It aims to be a drop-in replacement for Disqus. The benefits of Isso compare to Disqus: …

    Read more

  • Tips on Hugo SEO

    Last Update: in Hugo

    Tips on Hugo SEO (Search Engine Optimization). Add describe metadata, link build, handle external link, lighthouse SEO checklist etc.

    Hugo is one of the most popular open-source static site generators. With its amazing speed and flexibility, Hugo makes building websites fun again. However the default hugo template does not take too much consideration on SEO. Here are some tips to …

    Read more

  • Custom hugo RSS template

    Last Update: in Hugo

    Custom hugo RSS content. Add lastBuildDate to show the page last modification time. Make a custom description like adding image, use description field instead of summary or content.

    Hugo ships with its own RSS 2.0 template, it generated the RSS feed file as index.xml and embedded into index.html header. e.g. {{ range .AlternativeOutputFormats -}} {{ printf `<link rel="%s" type="%s" href="%s" >` .Rel …

    Read more

  • Hugo troubleshooting: execute of template failed: can't give argument to non-function

    Last Update: in Hugo

    render of “page” failed: execute of template failed: can’t give argument to non-function …

    Symptom After upgrade hugo from 0.62.2 to 0.79.1 and run hugo build got following error: $ HUGO_ENV="production" hugo Start building sites … ERROR 2021/05/05 15:01:35 render of "page" failed: execute of template failed: template: …

    Read more

Posts in 2020

  • Add git commit date as last update date in hugo page

    Last Update: in Hugo

    Hugo page template: Use .GitInfo or .Page.Lastmod as last update date in hugo page

    Use .GitInfo or .Page.Lastmod Hugo have build-in support to get the last Git revision information for every content file through Page.Lastmod or .GitInfo variable. Page.Lastmod is fetched from .GitInfo.AuthorDate. To enable Hugo get git commit info, …

    Read more