mirror of
https://github.com/Wonderfall/hugo-WonderMod.git
synced 2024-11-26 20:41:37 +01:00
papermod: add howto for custom head/footer
This commit is contained in:
parent
f904831878
commit
225666c340
@ -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
|
## References
|
||||||
|
|
||||||
- [Override a Hugo theme](https://zwbetz.com/override-a-hugo-theme/)
|
- [Override a Hugo theme](https://zwbetz.com/override-a-hugo-theme/)
|
||||||
|
Loading…
Reference in New Issue
Block a user