load cactus chat css before site css

This commit is contained in:
Gabriele Musco 2021-12-25 14:59:31 +01:00
parent af403dd262
commit 5295e27c08
No known key found for this signature in database
GPG Key ID: 0587A5D65B5DC99E
2 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,5 @@
{{ if and site.Params.cactusCommentsSiteName (.Params.comments | default true) }}
<script type="text/javascript" src="https://latest.cactus.chat/cactus.js"></script>
<link rel="stylesheet" href="https://latest.cactus.chat/style.css" type="text/css">
<div id="ficurinia-cactus-comments"></div>

View File

@ -25,6 +25,9 @@
</title>
<link href="/symbols-nerd-font/symbols-nerd-font.css" rel="stylesheet" />
<link href="/jetbrains-mono/jetbrains-mono.css" rel="stylesheet" />
{{ if and site.Params.cactusCommentsSiteName (.Params.comments | default true) }}
<link rel="stylesheet" href="https://latest.cactus.chat/style.css" type="text/css">
{{ end }}
{{ $style := resources.Get "/scss/style.scss" | resources.ExecuteAsTemplate "/scss/style.scss" . | resources.ToCSS (dict "targetPath" "css/styles.css" "outputStyle" "compressed" "enableSourceMap" "true") | resources.Fingerprint "sha512" }}
<link type=text/css rel=stylesheet href={{ $style.Permalink }} integrity="{{ $style.Data.Integrity }}" />
{{- partial "inject/head.html" . -}}