rhazdon / hugo-theme-hello-friend-ng

Pretty basic theme for Hugo that covers all of the essentials. All you have to do is start typing!
https://github.com/rhazdon/hugo-theme-hello-friend-ng/
Other
1.46k stars 777 forks source link

Allow extending head tag on page basis #351

Open undergroundwires opened 2 years ago

undergroundwires commented 2 years ago

This allow theme users to add page specific headings without overriding whole baseof.html.

It gives more flexibility to theme and maintainability to users.

extra-head solves global <head> injection, but sometimes pages require different <head> extensions such as for importing page specific CSS files or adding og:image meta tags.

Defining the block does not work in extend-head so theme supported base-of is the most awesome way to go.

Also documented both head extension options.