Add the canonical "footer" block
The base template and block system allows easy integration of themes with theme components. The "footer" blocks is also one of the suggested blocks in the Hugo docs: https://gohugo.io/templates/base/#define-the-base-template. Add this block quickly enables the use of theme components like [hugo-search-fuse-js](https://github.com/kaushalmodi/hugo-search-fuse-js/). I ended up creating this PR because of an issue created there: https://github.com/kaushalmodi/hugo-search-fuse-js/issues/1.
This commit is contained in:
parent
c07daadde8
commit
b1cccc8f2c
@ -8,6 +8,7 @@
|
|||||||
{{ block "header" . }}{{ partial "header.html" . }}{{ end }}
|
{{ block "header" . }}{{ partial "header.html" . }}{{ end }}
|
||||||
{{ block "main" . }}{{ end }}
|
{{ block "main" . }}{{ end }}
|
||||||
{{ partial "footer.html" . }}
|
{{ partial "footer.html" . }}
|
||||||
|
{{ block "footer" . }}{{ end }}
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user