Hugo template logic

Today I made some improvements to the Hugo theme I created for this site. Adding some conditional statements to the templates to cater for various scenarios that don’t fit how I intend to use the theme.

Although the theme is limited in scope, I want to eventually release it on Hugo Themes and allow it to be flexible enough for others to use.

Deal with no posts

On the layouts/partials/pagination.html template, it has been wrapped in

{{ if ne .TotalPages 0}}
  // Content
{{end}}