Add light mode and improve print compatibility

This commit is contained in:
2021-11-18 17:26:02 -06:00
parent 6d456768fa
commit d0c216165e
4 changed files with 185 additions and 8 deletions

View File

@@ -94,7 +94,9 @@
{{ end }}
{{ if .Params.comments }}
{{ partial "comments.html" . }}
<div class="comments">
{{ partial "comments.html" . }}
</div>
{{ end }}
{{ end }}

View File

@@ -9,6 +9,9 @@
{{ with resources.Get "css/syntax.css" | fingerprint "sha512" }}
<link rel="stylesheet" type="text/css" href="{{ .Permalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous">
{{ end }}
{{ with resources.Get "css/syntax-light.css" | fingerprint "sha512" }}
<link rel="stylesheet" type="text/css" href="{{ .Permalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous">
{{ end }}
{{ with .Site.Params.faviconICO }}
<link rel="icon" type="image/x-icon" href="{{ . | absURL }}" />