{{- /* LoveIt theme version detection */ -}} {{- if ne .Site.Params.version "0.1.X" -}} {{- errorf "\n\nThere are two possible situations that led to this error:\n 1. You haven't copied the config.toml yet. See https://github.com/dillonzq/LoveIt#installation \n 2. You have an incompatible update. See https://github.com//dillonzq/LoveIt/blob/master/CHANGELOG.md \n\n有两种可能的情况会导致这个错误发生:\n 1. 你还没有复制 config.toml 参考 https://github.com/dillonzq/LoveIt#installation \n 2. 你进行了一次不兼容的更新 参考 https://github.com//dillonzq/LoveIt/blob/master/CHANGELOG.md \n" -}} {{- end -}} {{- $scratch := newScratch -}} {{- .Scratch.Set "scratch" $scratch -}} {{- if eq hugo.Environment "production" -}} {{- $scratch.Set "production" true -}} {{- $scratch.Set "CDN" .Site.Params.cdn -}} {{- end -}} {{- block "title" . }}{{ .Site.Title }}{{ end -}} {{- partial "head/meta.html" . -}} {{- partial "head/link.html" . -}} {{- partial "head/seo.html" . -}} {{- /* Check theme isDark before body rendering */ -}} {{- /* Body wrapper */ -}}
{{- partial "header.html" . -}}
{{- block "content" . }}{{ end -}}
{{- partial "footer.html" . -}}
{{- /* Dynamic to top button */ -}}   {{- /* Load JavaScript scripts and CSS */ -}} {{- partial "assets.html" . -}}