Skip to content
This repository has been archived by the owner on Apr 5, 2022. It is now read-only.

Commit

Permalink
Updated template to load HLJS CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentTam committed Aug 24, 2019
1 parent 6449077 commit b055367
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
{{ if $.Site.Params.highlightjs }}
{{ $hlTh := $.Site.Params.highlightjsTheme | default "default" }}
{{ $hlThCSS := printf "css/styles/%s.css" $hlTh }}
{{ $cssSlice = $cssSlice | append (resources.Match $hlThCSS) }}
{{ $cssSlice = $cssSlice | append (resources.Get $hlThCSS) }}
{{ end }}
{{ $css := $cssSlice | resources.Concat "css/bundle.css" | resources.Minify | resources.Fingerprint }}
<link rel="stylesheet" href="{{ $css.RelPermalink }}" integrity="{{ $css.Data.Integrity }}">
Expand Down

0 comments on commit b055367

Please sign in to comment.