mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-11 23:44:41 -04:00
theme: Minor improvements to base template
This commit is contained in:
parent
0fca8ef251
commit
f683e64698
@ -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]
|
||||
|
@ -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" . }}
|
||||
|
@ -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 }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user