forked from drowl87/hextra_mirror

* feat: add page width config and partial * feat: use page-width partial in layouts * chore: revert changes in navbar and footer * feat: customize footer width from site config * chore: update styles * docs: add page width * feat: allow overriding navbar width * fix: navbar width variable * docs: add instruction for navbar and footer
17 lines
754 B
HTML
17 lines
754 B
HTML
{{ define "main" }}
|
|
<div class='mx-auto flex {{ partial "utils/page-width" . }}'>
|
|
{{ partial "sidebar.html" (dict "context" . "disableSidebar" true "displayPlaceholder" true) }}
|
|
{{ partial "toc.html" . }}
|
|
<article class="w-full break-words flex min-h-[calc(100vh-var(--navbar-height))] min-w-0 justify-center pb-8 pr-[calc(env(safe-area-inset-right)-1.5rem)]">
|
|
<main class="w-full min-w-0 max-w-6xl px-6 pt-4 md:px-12">
|
|
<br class="mt-1.5 text-sm" />
|
|
<h1 class="text-center mt-2 text-4xl font-bold tracking-tight text-slate-900 dark:text-slate-100">{{ .Title }}</h1>
|
|
<div class="mb-16"></div>
|
|
<div class="content">
|
|
{{ .Content }}
|
|
</div>
|
|
</main>
|
|
</article>
|
|
</div>
|
|
{{ end }}
|