diff --git a/README.md b/README.md index 10c12d5a..c0239cf6 100644 --- a/README.md +++ b/README.md @@ -268,6 +268,11 @@ Then, you can generate a different style by running: hugo gen chromastyles --style=monokailight > assets/css/syntax.css ``` If you get any errors, make sure the `assets/css/` directory exists within your sites root folder. +Include the newly generated `syntax.css` like a standard custom css script: +``` +[params] +customCss = ["css/syntax.css"] +``` ## License diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 4039336a..b0159f9c 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -8,15 +8,10 @@ {{- $css := "" -}} {{- range .Site.Params.customCss -}} - {{ $css := resources.Get . | minify | fingerprint }} + {{ $css := resources.Get . | fingerprint }} {{- end -}} - - {{- if .Site.Params.pygmentsUseClasses }} - {{ $style := resources.Get "css/syntax.css" | resources.Fingerprint }} - - {{- end -}}