feat: add rss template

feat: enhance sidebar on mobile
chore: simplify settings by having defaults
chore: update footer template
This commit is contained in:
Xin
2023-08-23 01:00:36 +01:00
parent 64e27cbc4e
commit 04a5c7378a
9 changed files with 62 additions and 42 deletions

View File

@ -13,7 +13,7 @@
<script defer src="{{ $scripts.RelPermalink }}" integrity="{{ $scripts.Data.Integrity }}"></script>
{{/* FlexSearch */}}
{{- if not site.Params.search.disabled -}}
{{- if (site.Params.search.enable | default true) -}}
{{- $jsSearchScript := printf "%s.search.js" .Language.Lang -}}
{{- $jsSearch := resources.Get "js/flexsearch.js" | resources.ExecuteAsTemplate $jsSearchScript . -}}
{{- if hugo.IsProduction -}}
@ -38,7 +38,7 @@
{{- end -}}
{{/* KaTex */}}
{{- if and (not site.Params.math.disabled) .Page.Params.math -}}
{{- if .Page.Params.math -}}
{{- $katexCSS := resources.Get "lib/katex/katex.min.css" | fingerprint -}}
{{- $katexJS := resources.Get "lib/katex/katex.min.js" | fingerprint -}}
{{- $mhchemJS := resources.Get "lib/katex/mhchem.min.js" | fingerprint -}}