From 225666c34061d05672a9f2bda6f0150dc37cc4fe Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Wed, 4 Nov 2020 15:04:52 +0530 Subject: [PATCH] papermod: add howto for custom head/footer --- content/posts/papermod/papermod-how-to.md | 25 +++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/content/posts/papermod/papermod-how-to.md b/content/posts/papermod/papermod-how-to.md index bebc3fdb..c325ae43 100644 --- a/content/posts/papermod/papermod-how-to.md +++ b/content/posts/papermod/papermod-how-to.md @@ -77,6 +77,31 @@ summary: archives --- +## Custom Head / Footer + +Custom css/js can be added by way mentioned below. + +``` +.(site root) +├── config.yml +├── content/ +├── theme/hugo-PaperMod/ +└── layouts + ├── partials + │ ├── comments.html + │ ├── extend_footer.html <--- + │ └── extend_head.html <--- + └── robots.txt +``` + +Create a html page in directory structure as shown above. + +Contents of `extend_head.html` will be added to `head` of page. + +and contents of `extend_footer.html` will be added to bottom of page. + +--- + ## References - [Override a Hugo theme](https://zwbetz.com/override-a-hugo-theme/)