Skip to content

Commit

Permalink
Document how to add custom html header content (#613)
Browse files Browse the repository at this point in the history
  • Loading branch information
jarrodmillman authored May 11, 2024
1 parent 93c73fd commit 99868aa
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions doc/content/user_guide/features.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ Blog post layouts:
- `layouts/partials/posts/tag.html`: Tag page layout
- `layers/partials/posts/comments.html`: Empty by default; can be overridden to place a comments section

## Add custom HTML header content

- `layouts/partials/head.html`

## Shortcut list

The depths of the shortcut list on the left of each post can be
Expand Down
2 changes: 1 addition & 1 deletion layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<!-- Add MathJax, if needed -->
{{ partial "mathjax.html" }}

<!-- Render custom header -->
<!-- Render custom user header -->
{{ partial "head.html" . -}}

<!-- Refer: https://regisphilibert.com/blog/2018/08/hugo-multilingual-part-1-managing-content-translation/ -->
Expand Down
1 change: 1 addition & 0 deletions layouts/partials/head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!-- Leave this file empty. This is a placeholder for theme users to customize head content. -->

0 comments on commit 99868aa

Please sign in to comment.