kdevo / osprey-delight

Osprey Delight is the free-minded artist's choice for a clutter-free and blazingly fast single-page portfolio.
https://hugo-mods.github.io/
Apache License 2.0
99 stars 44 forks source link

Insert script into head.html #6

Closed ChilledChild closed 4 years ago

ChilledChild commented 4 years ago

Could there be a function that will insert a script into the html head? Similar to googleAnalytics from config.html, another function such as headInserts would allow a user to embed custom functions without making direct changes to head.html.

kdevo commented 4 years ago

Hi @ChilledChild,

thanks for your suggestion. Technically, this shouldn't be a problem. However, conceptually, there might already be a more elegant built-in Hugo solution. In my view, the most customizability would be given by including a custom partial HTML in the head that the user can configure (not only limiting to scripts). I'll look into it when I have time!

kdevo commented 4 years ago

Implemented in 88674692c77d324b09f678477ca7f562aaa5b27e (dev) Makes use of Hugo's load order for partials! :rocket: