Hugo Book - Introduction: https://hugo-book-demo.netlify.app/docs/getting-started/introduction/ - Create a Site: https://hugo-book-demo.netlify.app/docs/getting-started/create-a-site/ - Configuration: https://hugo-book-demo.netlify.app/docs/getting-started/configuration/ - Organisation: https://hugo-book-demo.netlify.app/docs/content/organisation/ - Pages: https://hugo-book-demo.netlify.app/docs/content/pages/ - Menus: https://hugo-book-demo.netlify.app/docs/content/menus/ - Blog: https://hugo-book-demo.netlify.app/docs/content/blog/ - Multi-Language: https://hugo-book-demo.netlify.app/docs/content/multilingual/ - Shortcodes: https://hugo-book-demo.netlify.app/docs/content/shortcodes/ - Asciinema: https://hugo-book-demo.netlify.app/docs/content/shortcodes/asciinema/ - Badges: https://hugo-book-demo.netlify.app/docs/content/shortcodes/badges/ - Buttons: https://hugo-book-demo.netlify.app/docs/content/shortcodes/buttons/ - Cards: https://hugo-book-demo.netlify.app/docs/content/shortcodes/cards/ - Columns: https://hugo-book-demo.netlify.app/docs/content/shortcodes/columns/ - Details: https://hugo-book-demo.netlify.app/docs/content/shortcodes/details/ - Hints: https://hugo-book-demo.netlify.app/docs/content/shortcodes/hints/ - Images: https://hugo-book-demo.netlify.app/docs/content/shortcodes/images/ - Mermaid: https://hugo-book-demo.netlify.app/docs/content/shortcodes/mermaid/ - Steps: https://hugo-book-demo.netlify.app/docs/content/shortcodes/steps/ - Tabs: https://hugo-book-demo.netlify.app/docs/content/shortcodes/tabs/ - KaTeX: https://hugo-book-demo.netlify.app/docs/content/shortcodes/katex/ - Styles: https://hugo-book-demo.netlify.app/docs/customization/styles/ - Inject Partials: https://hugo-book-demo.netlify.app/docs/customization/inject-partials/ # Inject Partials The theme provides empty partial templates at key points in the page layout. Override these to inject custom HTML without modifying the base templates. Create matching files in your project's `layouts/_partials/docs/inject/` directory. | Partial | Location | | --- | --- | | `inject/head.html` | Inside `
`, e.g. meta tags, stylesheets, scripts | | `inject/body.html` | Before ``, e.g. analytics, chat widgets, scripts | | `inject/menu-before.html` | Before the sidebar menu | | `inject/menu-after.html` | After the sidebar menu | | `inject/content-before.html` | Before the page content | | `inject/content-after.html` | After the page content | | `inject/toc-before.html` | Before the table of contents | | `inject/toc-after.html` | After the table of contents | | `inject/footer.html` | Inside the page footer | ## Example To add a Google Analytics script, create `layouts/_partials/docs/inject/head.html` ```html {{ with .Site.Params.googleAnalytics }} {{ end }} ``` To add a custom banner above every page, create `layouts/_partials/docs/inject/content-before.html` ```html ```