Skip to content

Commit

Permalink
Minify and fingerprint chroma
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikko Miu committed Sep 13, 2024
1 parent aebe3b4 commit 2e70169
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="627" />
{{ else }}
<meta property="og:image" content="{{ "img/favicon-32x32.png" | relURL }}" />
<meta property="og:image" content="{{ "img/icon.svg" | absURL }}" />
{{ end }}
{{ range .Params.categories }}
<meta property="article:section" content="{{ . }}" />
Expand Down Expand Up @@ -145,6 +145,9 @@
{{ $chromaCSS := resources.Get "css/entry.chroma.css" }}
{{ $chromaCSSOpts := (dict "noMap" (not hugo.IsDevelopment)) }}
{{ $chromaOut := $chromaCSS | postCSS $chromaCSSOpts }}
{{ if not hugo.IsDevelopment }}
{{ $chromaOut = $chromaOut | minify | fingerprint }}
{{ end }}
{{ partial "defer-css" $chromaOut.RelPermalink }}

{{ partial "defer-css" ("pagefind/pagefind-ui.css" | relURL) }}
Expand Down

0 comments on commit 2e70169

Please sign in to comment.