blog-theme

This commit is contained in:
Elnu 2023-02-18 16:42:54 -08:00
parent 29b925d36b
commit e00e6162ac
22 changed files with 349 additions and 1875 deletions

View file

@ -53,13 +53,11 @@
{{ with .Site.Params.ThemeColor }}
<meta name="theme-color" content="{{ . }}">
{{ end }}
<link rel="stylesheet" href="/css/sakura/normalize.css">
<link rel="stylesheet" href="/css/sakura/sakura{{ if isset .Site.Params "theme" }}-{{ .Site.Params.Theme }}{{ end }}.css">
{{ if isset .Site.Params "soudanurl" }}
<link rel="stylesheet" href="/css/soudan.css">
{{ end }}
{{ $main_options := (dict "targetPath" "css/style.css" "outputStyle" "compressed") }}
{{ $main_template := resources.Get "sass/style.sass" }}
{{ $main_style := $main_template | resources.ExecuteAsTemplate "style.sass" . | toCSS $main_options | resources.Minify }}
<link rel="stylesheet" href="{{ $main_style.RelPermalink }}">
{{ if .Site.Params.Stork }}
<link rel="stylesheet" href="/css/stork.css">
<script src="/js/stork.js"></script>
<script>
stork.initialize("/js/stork.wasm");