mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-17 22:14:16 +00:00
theme: Minor improvements to base template
This commit is contained in:
1 parent
0fca8ef251
commit
f683e64698
3 files changed
+9
-13
No files matched your search
@@ -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" . }}
|
||||
|
||||
Reference in new issue
Block a user