Replies: 1 comment 1 reply
-
Hello @jerefrer check how to override theme components in Hugo's documentation. You can copy paste all the theme's components and override them to your will. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there, and thanks for this marvelous theme :)
There is one thing though that is making progress on my project quite painful.
Often times I would like to adjust the look of some elements, and in almost all cases it would be entirely possible to do so only using CSS.
The problem then is that none of the elements have specific CSS classes that allow me to target them.
For instance I can't have a CSS rule targeting only the
layouts/defaults/list.html
orlayouts/defaults/single.html
, but I could easily have if their content was wrapped in a container with a specific class, like.layout-list
and.layout-single
or whatever.Another example would be to try changing the look of the
partials/article-link/card.html
. Since there is no specific CSS class I just can't target only those cards without having to copy-paste the partial into my own project just to add a new CSS class myself. I'm reluctant to do this since I would then have to repeat that again if I upgrade the theme later on.I'm quite new to Hugo so it's highly probable that I'm missing some core concept here that would allow me to painlessly achieve what I'm aiming for.
But if I'm not, wouldn't it be a good idea to add semantically interesting CSS classes everywhere in the theme so that one could change the look without having to even touch the templates?
Beta Was this translation helpful? Give feedback.
All reactions