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
24 lines
1.4 KiB
HTML
24 lines
1.4 KiB
HTML
{{ define "main" }}
|
|
<div class='mx-auto flex {{ partial "utils/page-width" . }}'>
|
|
{{ partial "sidebar.html" (dict "context" . "disableSidebar" true "displayPlaceholder" true) }}
|
|
<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="content">{{ .Content }}</div>
|
|
{{ range .Pages.ByDate }}
|
|
<div class="mb-10">
|
|
<h3><a style="color: inherit; text-decoration: none;" class="block font-semibold mt-8 text-2xl " href="{{ .RelPermalink }}">{{ .Title }}</a></h3>
|
|
<p class="opacity-80 mt-6 leading-7">
|
|
{{- partial "utils/page-description" . }}
|
|
<span class="inline-block"> <a class="text-[color:hsl(var(--primary-hue),100%,50%)] underline underline-offset-2 decoration-from-font" href="{{ .RelPermalink }}">Read more →</a> </span>
|
|
</p>
|
|
<p class="opacity-50 text-sm mt-6 leading-7">{{ partial "utils/format-date" .Date }}</p>
|
|
</div>
|
|
{{ end }}
|
|
</main>
|
|
</article>
|
|
<div class="max-xl:hidden h-0 w-64 shrink-0"></div>
|
|
</div>
|
|
{{ end }}
|