gohugoio / hugo

The world’s fastest framework for building websites.
https://gohugo.io
Apache License 2.0
74.63k stars 7.45k forks source link

Improve documentation for block templates #2363

Closed juh2 closed 7 years ago

juh2 commented 8 years ago

The documentation of block templates starts with a link to https://gohugo.io/templates/ace/ which contains a hint to the naming convention of block templates.

Please insert the naming convention of block templates (baseof.html) in this chapter. Many readers won't consult the ace documentation before using block templating.

https://github.com/spf13/hugo/blob/master/docs/content/templates/blocks.md

bep commented 8 years ago

Wouldn't it be easier to just fix the documentation and create a PR?

juh2 commented 8 years ago

Generally you're right, but I am far from understanding the mechanism. I guessed it from a question on discuss.gohugo.io.

I'll dive into it so if the issue is still open when I think I know what I am talking about, I'll make a PR.

irwinsol commented 8 years ago

Took me awhile to figure this out too. Had to reverse-engineer "hugo-alabaster-theme" since that was the only Hugo theme that had an example of the implementation. Would be happy to collaborate on this.

github-actions[bot] commented 2 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.