mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-29 22:29:56 +02:00
Merge commit 'a024bc7d76fcc5e49e8210f9b0896db9ef21861a'
This commit is contained in:
67
docs/layouts/_default/baseof.html
Normal file
67
docs/layouts/_default/baseof.html
Normal file
@@ -0,0 +1,67 @@
|
||||
<!doctype html>
|
||||
<html
|
||||
class="h-full antialiased scheme-light dark:scheme-dark"
|
||||
lang="{{ with site.Language.LanguageCode }}
|
||||
{{ . }}
|
||||
{{ else }}
|
||||
en-us
|
||||
{{ end }}
|
||||
">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>
|
||||
{{ .Title }}
|
||||
</title>
|
||||
<style>
|
||||
[x-cloak] {
|
||||
display: none !important;
|
||||
}
|
||||
</style>
|
||||
<meta
|
||||
name="description"
|
||||
content="{{ .Description | default site.Params.description }}" />
|
||||
{{ partial "layouts/head/head-js.html" . }}
|
||||
{{ with (templates.Defer (dict "key" "global")) }}
|
||||
{{ $t := debug.Timer "tailwindcss" }}
|
||||
{{ with resources.Get "css/styles.css" }}
|
||||
{{ $opts := dict
|
||||
"inlineImports" true
|
||||
"minify" (not hugo.IsDevelopment)
|
||||
}}
|
||||
{{ with . | css.TailwindCSS $opts }}
|
||||
{{ partial "helpers/linkcss.html" (dict "r" .) }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ $t.Stop }}
|
||||
{{ end }}
|
||||
{{ partial "layouts/head/head.html" . }}
|
||||
</head>
|
||||
<body class="flex flex-col min-h-full bg-white dark:bg-blue-950">
|
||||
{{ partial "layouts/hooks/body-start.html" . }}
|
||||
{{/* Layout. */}}
|
||||
{{ block "header" . }}
|
||||
{{ partial "layouts/header/header.html" . }}
|
||||
{{ end }}
|
||||
{{ block "hero" . }}
|
||||
{{ end }}
|
||||
<div class="flex w-full xl:w-6xl h-full flex-auto mx-auto">
|
||||
<main
|
||||
class="flex-1 mx-auto lg:mx-0 w-full max-w-3x lg:max-w-3x pt-8 lg:pt-14 pb-20 px-main">
|
||||
{{ block "main" . }}{{ end }}
|
||||
</main>
|
||||
{{ block "rightsidebar" . }}
|
||||
<aside
|
||||
class="py-15 ml-4 xl:ml-12 w-60 hidden lg:relative lg:block lg:flex-none">
|
||||
{{ block "rightsidebar_content" . }}{{ end }}
|
||||
</aside>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{/* Common icons. */}}
|
||||
{{ partial "layouts/icons.html" . }}
|
||||
{{/* Footer. */}}
|
||||
{{ block "footer" . }}
|
||||
{{ partial "layouts/footer.html" . }}
|
||||
{{ end }}
|
||||
{{ partial "layouts/hooks/body-end.html" . }}
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user