diff options
| author | Serghei Iakovlev <egrep@protonmail.ch> | 2022-05-08 13:50:57 +0200 |
|---|---|---|
| committer | Serghei Iakovlev <egrep@protonmail.ch> | 2022-05-08 13:50:57 +0200 |
| commit | f51d4ec6182d93283c794501b02df43a7f07011b (patch) | |
| tree | 8a843cc827ec070ff19f1533a0ec8ae0b28c6125 /layouts/partials/styles.html | |
| parent | e21a3141ca659bf6140dc1350b4552b6ddddf357 (diff) | |
| download | gohugo-theme-ed-f51d4ec6182d93283c794501b02df43a7f07011b.tar.gz | |
Use Chroma instead of highlight.js
Diffstat (limited to 'layouts/partials/styles.html')
| -rw-r--r-- | layouts/partials/styles.html | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/layouts/partials/styles.html b/layouts/partials/styles.html index af7c709..32513eb 100644 --- a/layouts/partials/styles.html +++ b/layouts/partials/styles.html @@ -1,12 +1,9 @@ {{- /* Styles */}} {{- $theme := resources.Get "sass/style.scss" | resources.ToCSS }} -{{- /* include hljs' css if hljs is on */}} -{{- $isHLJSdisabled := (site.Params.assets.disable_highlight_js | default false) }} -{{- $hljs := (cond ($isHLJSdisabled) (" " | resources.FromString "assets/css/hljs-blank.css") (resources.Get "css/hljs/hljs-default.min.css")) }} - {{- /* order is important */}} -{{- $core := (slice $theme $hljs) | resources.Concat "assets/css/core.css" }} +{{- /* to ass more styles use the following format: slice $theme $style1 $style2 $style3 ... */}} +{{- $core := (slice $theme) | resources.Concat "assets/css/core.css" }} {{- $extended := (resources.Match "css/extended/*.css") | resources.Concat "assets/css/extended.css" }} {{- /* bundle all required css */}} |
