- Manage URLs
- Turn of
- HTML in .md files
- Hugo on localhost
You can manage post/pages URLs by adding
url: in your frontmatter. For example, for this guide the front matter looks something like this:
The URL of the post will be
/guides/hugo-tips/ despite the directory being
This can help with SEO and making the URLs hugam readable.
You can disable
/categories/ by adding the following in your
You can also disable taxonomy for a build like so:
HTML code in posts
You should be able to add HTML code on your site by default however some themes are a bit old and might not support html code by default. To over come that, you can add the following code in
Using this you can make various other customisation to your content like coloured text and adding comments to your hugo site.
You can add comments to any static site including hugo using Utterances as explained before at /guides/comments-hugo/
In summary, you can add your code from Utterances whereever you need a comment section:
Hugo on Localhost
This can be helpful when working in a team and publishing live ammendments to your localhost, which then can be available to the internet using port forwarding.
[IP-ADD] is your local IP address.
that’s it <3