adityatelange / hugo-PaperMod

A fast, clean, responsive Hugo theme.
https://adityatelange.github.io/hugo-PaperMod/
MIT License
9.53k stars 2.58k forks source link

allow exposing theme css variables in settings #1424

Closed vindex10 closed 6 months ago

vindex10 commented 7 months ago

To allow more theme customizations through hugo.yaml, I suggest to make theme-vars.css renderable.

this small change opens a wide variety of opportunities in future.

For example, a use case which I'm interested in: allow to configure how many lines are visible in the preview in the list of the posts. This is specified in CSS, and impossible to tune via hugo.yaml yet, because css is not rendered by default.

theme-vars.css is supposed to be very simple, so I wouldn't expect its being rendered - a big issue.

Relevant PR which we can adapt with the flow of the discussion: https://github.com/adityatelange/hugo-PaperMod/pull/1399

adityatelange commented 6 months ago

I don't see any use case here. Users can already override theme-vars.css file (using this)

Originally posted by @adityatelange in https://github.com/adityatelange/hugo-PaperMod/issues/1399#issuecomment-1985058636