mirror of
https://github.com/gohugoio/hugo.git
synced 2025-05-04 20:21:06 +00:00
When using a html link checker with Hugo, this template consistently causes errors, as it renders `href=""` attributes when next/previous is disabled. This change makes it so that the `href` attribute is not rendered at all if `HasNext` is false - which is better semantically, and makes link checking far easier. |
||
---|---|---|
.. | ||
generate | ||
templates | ||
.gitattributes | ||
README.md | ||
templates.autogen.go |
Build Templates
If you add or modify any template in the templates folder, you also need to run mage generate
to get the Go code in synch.