commit 9ac0cfe149b0c38ee9e1874b06312afe25ca197b
parent b99614db390162c8403b55c15cbbde1252d216bb
Author: Shimmy Xu <shimmy.xu@shimmy1996.com>
Date: Mon, 2 Dec 2019 14:15:59 -0500
Load isso CSS only when there is a comment section
Diffstat:
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/layouts/partials/comment.html b/layouts/partials/comment.html
@@ -1,5 +1,5 @@
-<script
- async
+<style>{{ partial "css/isso.css" . | safeCSS}}</style>
+<script async
data-isso="/isso/"
data-isso-css="false"
data-isso-lang={{ .Site.Language }}
diff --git a/layouts/partials/css/custom.css b/layouts/partials/css/custom.css
@@ -6,5 +6,3 @@ a:focus, a:hover {
background: var(--accent-color);
color: var(--background-color);
}
-
-{{ partial "css/isso.css" . }}