giscus: add custom theming #44
Labels
module:giscus
state:confirmed
This issue is confirmed.
type:enhancement
New enhancements and features.
As described in Advanced Usage a custom theme can be added. Let's implement it here too.
The setup would be as follows:
config
stylesheet
is a path to a stylesheet (looks by default forassets/scss/giscus/theme.scss
). This stylesheet will import the original theme selected undergiscus
(loading via getRemote), then subsequent properties undertheme
are added as overrides and exports the finished stylesheet.The camelcased syntax of the theme variables are corresponding to the CSS variables in the sample theme.
The pain point here is how to map this without having to add all items to the template. I think there should be a way to transform camelcase to title-case in Hugo.
Currently I think it's a sequence like this:
If
GISCUS_THEME
is set in the outputs, then a custom stylesheet will be linked, so a custom theme without any settings in thetheme
config section still can add custom styles viatheme.scss
.The text was updated successfully, but these errors were encountered: