Move comments CSS to <head>

This commit is contained in:
BBaoVanC 2023-11-11 20:43:34 -06:00
parent 0f4db51ba7
commit 7a1bf6c19c
Signed by: bbaovanc
GPG Key ID: 18089E4E3CCF1D3A
2 changed files with 6 additions and 4 deletions

View File

@ -1,3 +1,9 @@
{{ if and .Params.comments (eq .Kind "page") }}
{{ with resources.Get "css/comments.css" | fingerprint "sha512" }}
<link rel="stylesheet" type="text/css" href="{{ .Permalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous" media="print" onload="this.media='all'">
{{ end }}
{{ end }}
{{ if eq .Site.BaseURL "https://bbaovanc.com" }}
<script defer data-domain="bbaovanc.com" src="https://plausible.bbaovanc.com/js/bobalytics.outbound-links.js"></script>
<script>window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }</script>

View File

@ -1,7 +1,3 @@
{{ with resources.Get "css/comments.css" | fingerprint "sha512" }}
<link rel="stylesheet" type="text/css" href="{{ .Permalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous">
{{ end }}
<h2 style="margin-bottom: 0;">Comments</h2>
<p style="margin: 0; font-size: smaller;">
If you provide an email address, you can enable notifications for