cntrump / hugo-notepadium

a fast gohugo theme, 100% JavaScript-free.
https://examplesite.lvv.me/
MIT License
332 stars 125 forks source link

Pick up CSS assets from page front matter #86

Closed reitzig closed 6 months ago

reitzig commented 4 years ago

This allows us to include some CSS only on some pages. Conventions are the same as for site config.

Example

---
title: "Impressum"
lastMod: 2020-05-10T18:00:00+02:00
robots: "noindex"
assets:
  css: ["css/privacy_hacks.css"]
---
reitzig commented 4 years ago

Ah, seems like I was one cache refresh behind. We don't seem to get separate CSS files, after all. Not sure how to enforce this. Or is extended Hugo needed for this? I switched back and forth, not sure when in relation to my experiments with this. @cntrump, can you help?