mirror of https://github.com/theNewDynamic/gohugo-theme-ananke.git

Patrick Kollitsch
3 days ago a58a496fd284622dcde608218dfac4d4d35f20cb
refs
author Patrick Kollitsch <davidsneighbourdev+gh@gmail.com>
Friday, June 5, 2026 13:05 +0200
committer Patrick Kollitsch <davidsneighbourdev+gh@gmail.com>
Saturday, June 6, 2026 03:21 +0200
commita58a496fd284622dcde608218dfac4d4d35f20cb
tree 71015aa9006fb6fb9a5000973b6cff59c8812278 tree | zip | gz
parent 0a0bc2107d420d1fe01dd5316f88c54c233c3c91 view | diff
feat: add layout and content hook points

Wire the hook.html system into the base layout and single templates so site
projects can inject or filter markup without overriding templates. Adds the
positional hooks head-end, body-start, header-before, header-after,
main-before, main-after, footer-before, footer-after and body-end in
baseof.html (head-end via head-additions.html), plus content-before and
content-after around the article content in single.html and page/single.html.

Each hook is a no-op until a site provides the matching
layouts/_partials/hooks/<name>.html partial.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
4 files modified
20 ■■■■■ changed files
layouts/_partials/head-additions.html 8 ●●●●● diff | view | raw | blame | history
layouts/baseof.html 8 ●●●●● diff | view | raw | blame | history
layouts/page/single.html 2 ●●●●● diff | view | raw | blame | history
layouts/single.html 2 ●●●●● diff | view | raw | blame | history