3 ms·
Re: Hugo Be aware that the templating language is a bit difficult to learn if you're not already a Go programmer. The documentation is spread across the text/t
by adrianmsmith 2y ago
Re: Hugo
Be aware that the templating language is a bit difficult to learn if you're not already a Go programmer. The documentation is spread across the text/template and html/template Godoc and also Hugo's documentation of the DOM (e.g. attributes of a page object, which you'll need to display the page's title etc., if you're writing custom themes or altering existing ones). I didn't find the documentation of the DOM particularly good at the time (10 years ago now, may have improved), lots of examples but not much reference documentation if you want to do something other than what the example does.
Be aware as well that there are no hierarchies in categories, e.g. in WordPress you can have "dev" and under that "java", "go" etc. Go just has flat categories. If you want to have a "dev" category displaying all your dev stuff, you have to tag each "java" post as "dev" in addition.
- sofixa 2y ago> Be aware that the templating language is a bit difficult to learn if you're not already a Go programmer I didn't find it difficult coming from Jinja, but it's not something trivial, I agree. However templating isn't something you need unless you go into more complicated topics - most themes cover the basics pretty well, and there are a lot of resources online to guide you.