AndySylvester
AndySylvester
Rendering a static site in Hugo andysylvester.com
|
Embed
Progress spinner
jack
jack

@AndySylvester You may have figured this out, but if not...You can also put theme = "book" in the config.toml file so you don't need to add the flag every time you render.

|
Embed
Progress spinner
AndySylvester
AndySylvester

@jack thanks for the tip! I will try it on my next build.

|
Embed
Progress spinner
AndySylvester
AndySylvester

@jack that worked great! I have a follow-up question: how do I get blog posts to be displayed in reverse chronological order?

|
Embed
Progress spinner
jack
jack

@AndySylvester Most themes display posts in reverse chronological order by default, I would think. Perhaps "book" is different. I've not done it, but my guess is you'll need to tinker with the template /layouts/posts/list.html and probably either remove sort or add .reverse to the pagination bits. Sorry I'm not more useful.

|
Embed
Progress spinner
In reply to
AndySylvester
AndySylvester

@jack per this page (https://gohugo.io/templates/lists/#reverse-order), I changed list.html to match the range command in the example, and that gave me the reverse order I wanted (also changed the date format in all the posts to be consistent). Thanks for the tip, that seemed to be the correct template to change!

|
Embed
Progress spinner