Skip to content

Commit 99868aa

Browse files
Document how to add custom html header content (#613)
1 parent 93c73fd commit 99868aa

3 files changed

Lines changed: 6 additions & 1 deletion

File tree

doc/content/user_guide/features.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ Blog post layouts:
1414
- `layouts/partials/posts/tag.html`: Tag page layout
1515
- `layers/partials/posts/comments.html`: Empty by default; can be overridden to place a comments section
1616

17+
## Add custom HTML header content
18+
19+
- `layouts/partials/head.html`
20+
1721
## Shortcut list
1822

1923
The depths of the shortcut list on the left of each post can be

layouts/_default/baseof.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<!-- Add MathJax, if needed -->
1212
{{ partial "mathjax.html" }}
1313

14-
<!-- Render custom header -->
14+
<!-- Render custom user header -->
1515
{{ partial "head.html" . -}}
1616

1717
<!-- Refer: https://regisphilibert.com/blog/2018/08/hugo-multilingual-part-1-managing-content-translation/ -->

layouts/partials/head.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<!-- Leave this file empty. This is a placeholder for theme users to customize head content. -->

0 commit comments

Comments
 (0)