Last updated - 2025-SEP-30
ToDo
| ToDo | Date | |
|---|---|---|
| Global images | 2024-SEP-03 | |
| Tags | 2024-SEP-04 | |
| Categories | 2024-SEP-03 | |
| Google analytics | 2024-SEP-05 | |
| Comment system - Integrating Giscus | 2024-SEP-05 | |
| Upgrade website | 2025-SEP-29 | |
| Add page for the book | 2025-SEP-30 |
Adding global images
- Create
imagesfolder undercontentdirectory. - Upload images under
contents/images/foldder - Add images using the
figureshortcode.
e.g.
{\{< figure src="/images/jerry.gif" alt="Jerry" width="200" align="center" >}}
Adding tags and categories
Edit your config.yaml or hugo.yaml and add a taxonomies section as given below,
|
|
Once this is done, you can add categories and tags under the front matter.
|
|
I use cursor as my editor. Once I’m done writing the article, I use the built-in AI to generate the categories and tags.
Google Analytics
This one was easy! Everything you need is given under this link
|
|
Adding Comments
The way i understand it, setting up comments on a hugo website depends on the comment system and the theme that you are using.
I’m using Giscus and running my site using the PaperMod theme. The following steps might be only applicable for Giscus + Papermod.
Configuring Giscus
- Create and public github repo and enable discussions under settings
- Go to https://giscus.app/ and complete the configuration session.
This would generate an HTML script, e.g.,
|
|
Site configuration
- Follow the steps here.
- For the posts that you want to enable comments add
comments: trueto the front matter.
Upgrading Hugo website
./J