mirror of https://github.com/luizdepra/hugo-coder.git

John Feminella
29.46.2022 3762d3a24cf1b77e6d9bf1223ebdda173e53f498
refs
author John Feminella <jxf+github@jxf.me>
Sunday, May 29, 2022 20:46 +0200
committer GitHub <noreply@github.com>
Sunday, May 29, 2022 20:46 +0200
commit3762d3a24cf1b77e6d9bf1223ebdda173e53f498
tree 57cc2cbe368fc3d945ae9550d962e313e8cc950b tree | zip | gz
parent 5e4e500cdfe00babb29eb7aeef18c9d0ec3c5a47 view | diff
Modularize <head> and baseof templates (#639)

* Add extension points for template customization

Today, if you use the hugo-coder template, you can't modify <head>
without having to write the entire template from scratch. This makes
small point modifications or adjustments impractical and means that
downstream consumers will quickly be out of sync with upstream
changes.

To remedy this, we split up the template into more modular extension
points. This commit adds one extension point to <body> for arbitrary
scripting and several more to <head> for different existing
touchpoints.

* Add John Feminella to CONTRIBUTORS.md

* Modularize home.html template

Co-authored-by: Luiz F. A. de PrĂ¡ <luizdepra@users.noreply.github.com>
3 files modified
13 files added
372 ■■■■ changed files
CONTRIBUTORS.md 1 ●●●● diff | view | raw | blame | history
layouts/_default/baseof.html 193 ●●●● diff | view | raw | blame | history
layouts/partials/body/extensions.html 5 ●●●●● diff | view | raw | blame | history
layouts/partials/head.html 23 ●●●●● diff | view | raw | blame | history
layouts/partials/head/alternative-output-formats.html 3 ●●●●● diff | view | raw | blame | history
layouts/partials/head/color-scheme.html 11 ●●●●● diff | view | raw | blame | history
layouts/partials/head/custom-icons.html 5 ●●●●● diff | view | raw | blame | history
layouts/partials/head/custom-styles.html 21 ●●●●● diff | view | raw | blame | history
layouts/partials/head/extensions.html 4 ●●●● diff | view | raw | blame | history
layouts/partials/head/hugo-generator.html 1 ●●●● diff | view | raw | blame | history
layouts/partials/head/meta-tags.html 15 ●●●●● diff | view | raw | blame | history
layouts/partials/head/theme-styles.html 23 ●●●●● diff | view | raw | blame | history
layouts/partials/home.html 36 ●●●● diff | view | raw | blame | history
layouts/partials/home/author.html 6 ●●●●● diff | view | raw | blame | history
layouts/partials/home/avatar.html 8 ●●●●● diff | view | raw | blame | history
layouts/partials/home/social.html 17 ●●●●● diff | view | raw | blame | history