theme: Minor improvements to base template

This commit is contained in:
Joe Mooring 2025-02-17 02:22:37 -08:00 committed by GitHub
parent 0fca8ef251
commit f683e64698
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 9 additions and 13 deletions

View File

@ -2,7 +2,6 @@ baseURL = "https://gohugo.io/"
defaultContentLanguage = "en"
enableEmoji = true
ignoreLogs = ["error-missing-instagram-accesstoken"]
languageCode = "en-us"
pluralizeListTitles = false
timeZone = "Europe/Oslo"
title = "Hugo"
@ -37,6 +36,7 @@ disableAliases = true
[languages]
[languages.en]
languageName = "English"
languageCode = "en-US"
weight = 1
[security]

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" . }}

View File

@ -1,5 +1,3 @@
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
{{ hugo.Generator }}