diff options
Diffstat (limited to 'layouts/_default/baseof.html')
| -rw-r--r-- | layouts/_default/baseof.html | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html deleted file mode 100644 index 99f09d9..0000000 --- a/layouts/_default/baseof.html +++ /dev/null @@ -1,53 +0,0 @@ -<!DOCTYPE html> -<html lang="{{ .Language.LanguageCode }}" dir="{{ .Language.LanguageDirection | default "ltr" }}"> - <head> - <meta charset="UTF-8"> - <meta name="viewport" content="width=device-width, initial-scale=1"> - <title>{{ block "title" . }}{{ if and (not .IsHome) .Title }}{{ .Title }} | {{ end }}{{ site.Title }}{{ end }}</title> - - {{- with .Description }} - <meta name="description" content="{{ . }}"> - {{- else }} - {{- if or .IsPage .IsSection}} - <meta name="description" content="{{ .Summary | plainify | default (printf "%s | %s" .Title site.Title) }}"> - {{- else }} - <meta name="description" content="{{ site.Params.description | default site.Title }}"> - {{- end }} - {{- end }} - - <meta name="generator" content="Hugo {{ hugo.Version }}"> - <link rel="canonical" href="{{ .Permalink }}"> - - {{- if .IsTranslated }} - {{- range .Translations }} - <link rel="alternate" hreflang="{{ .Lang }}" href="{{ .Permalink }}"> - {{- end }} - {{- end }} - - {{- with .OutputFormats.Get "rss" }} - {{- printf `<link rel=%q type=%q href=%q title=%q>` .Rel .MediaType.Type .Permalink site.Title | safeHTML }} - {{- end }} - - {{- partial "head/meta.html" . }} - {{- partial "head/seo.html" . }} - <!-- Prevent FOUC, default light mode --> - <script> - const storedTheme = localStorage.getItem("theme"); - const prefDarkmode = window.matchMedia("(prefers-color-scheme: dark)").matches; - document.documentElement.setAttribute("data-theme", storedTheme ?? (prefDarkmode ? "dark" : "light")); - </script> - {{- partialCached "head/css.html" . }} - {{ partialCached "head/js.html" . }} - </head> - - <body class="{{ .Type | default "page" }}"> - {{ partial "header.html" . }} - {{ partial "navmenu.html" (dict "menuID" "main" "page" .) }} - - <main id="main-content" class="site__main" role="main"> - {{ block "main" . }}{{ end }} - </main> - - {{ partial "footer.html" . }} - </body> -</html> |
