theme: Minor improvements to base template

This commit is contained in:
Joe Mooring authored and GitHub committed 2025-02-17 02:22:37 -08:00
1 parent 0fca8ef251
commit f683e64698
3 files changed
+9 -13

No files matched your search

+8 -10
View File
@@ -1,14 +1,9 @@
<!doctype html>
<html
class="h-full antialiased scheme-light dark:scheme-dark"
lang="{{ with site.Language.LanguageCode }}
{{ . }}
{{ else }}
en-us
{{ end }}
">
lang="{{ or site.Language.LanguageCode `en-US` }}">
<head>
<meta charset="utf-8" />
<meta charset="utf-8">
<title>
{{ .Title }}
</title>
@@ -19,7 +14,7 @@
</style>
<meta
name="description"
content="{{ .Description | default site.Params.description }}" />
content="{{ .Description | default site.Params.description }}">
{{ partial "layouts/head/head-js.html" . }}
{{ with (templates.Defer (dict "key" "global")) }}
{{ $t := debug.Timer "tailwindcss" }}
@@ -36,11 +31,14 @@
{{ end }}
{{ $noop := .WordCount }}
{{ if .Page.Store.Get "hasMath" }}
<link href="https://cdn.jsdelivr.net/npm/katex@0.16.21/dist/katex.min.css" rel="stylesheet">
<link
href="https://cdn.jsdelivr.net/npm/katex@0.16.21/dist/katex.min.css"
rel="stylesheet">
{{ end }}
{{ partial "layouts/head/head.html" . }}
</head>
<body class="flex flex-col min-h-full bg-white dark:bg-blue-950 kind-{{ .Kind }}">
<body
class="flex flex-col min-h-full bg-white dark:bg-blue-950 kind-{{ .Kind }}">
{{ partial "layouts/hooks/body-start.html" . }}
{{/* Layout. */}}
{{ block "header" . }}