mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-12 08:24:52 -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"
|
defaultContentLanguage = "en"
|
||||||
enableEmoji = true
|
enableEmoji = true
|
||||||
ignoreLogs = ["error-missing-instagram-accesstoken"]
|
ignoreLogs = ["error-missing-instagram-accesstoken"]
|
||||||
languageCode = "en-us"
|
|
||||||
pluralizeListTitles = false
|
pluralizeListTitles = false
|
||||||
timeZone = "Europe/Oslo"
|
timeZone = "Europe/Oslo"
|
||||||
title = "Hugo"
|
title = "Hugo"
|
||||||
@ -37,6 +36,7 @@ disableAliases = true
|
|||||||
[languages]
|
[languages]
|
||||||
[languages.en]
|
[languages.en]
|
||||||
languageName = "English"
|
languageName = "English"
|
||||||
|
languageCode = "en-US"
|
||||||
weight = 1
|
weight = 1
|
||||||
|
|
||||||
[security]
|
[security]
|
||||||
|
@ -1,14 +1,9 @@
|
|||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html
|
<html
|
||||||
class="h-full antialiased scheme-light dark:scheme-dark"
|
class="h-full antialiased scheme-light dark:scheme-dark"
|
||||||
lang="{{ with site.Language.LanguageCode }}
|
lang="{{ or site.Language.LanguageCode `en-US` }}">
|
||||||
{{ . }}
|
|
||||||
{{ else }}
|
|
||||||
en-us
|
|
||||||
{{ end }}
|
|
||||||
">
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8">
|
||||||
<title>
|
<title>
|
||||||
{{ .Title }}
|
{{ .Title }}
|
||||||
</title>
|
</title>
|
||||||
@ -19,7 +14,7 @@
|
|||||||
</style>
|
</style>
|
||||||
<meta
|
<meta
|
||||||
name="description"
|
name="description"
|
||||||
content="{{ .Description | default site.Params.description }}" />
|
content="{{ .Description | default site.Params.description }}">
|
||||||
{{ partial "layouts/head/head-js.html" . }}
|
{{ partial "layouts/head/head-js.html" . }}
|
||||||
{{ with (templates.Defer (dict "key" "global")) }}
|
{{ with (templates.Defer (dict "key" "global")) }}
|
||||||
{{ $t := debug.Timer "tailwindcss" }}
|
{{ $t := debug.Timer "tailwindcss" }}
|
||||||
@ -36,11 +31,14 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
{{ $noop := .WordCount }}
|
{{ $noop := .WordCount }}
|
||||||
{{ if .Page.Store.Get "hasMath" }}
|
{{ 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 }}
|
{{ end }}
|
||||||
{{ partial "layouts/head/head.html" . }}
|
{{ partial "layouts/head/head.html" . }}
|
||||||
</head>
|
</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" . }}
|
{{ partial "layouts/hooks/body-start.html" . }}
|
||||||
{{/* Layout. */}}
|
{{/* Layout. */}}
|
||||||
{{ block "header" . }}
|
{{ block "header" . }}
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
<meta charset="utf-8" />
|
|
||||||
|
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
|
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
|
||||||
{{ hugo.Generator }}
|
{{ hugo.Generator }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user