Files
hextra/layouts/docs/single.html
T

25 lines
1.2 KiB
HTML
Raw Normal View History

2023-07-29 17:41:25 +01:00
{{ define "main" }}
<div class='hx:mx-auto hx:flex hextra-max-page-width'>
2023-08-07 23:48:07 +01:00
{{ partial "sidebar.html" (dict "context" .) }}
2023-07-29 17:41:25 +01:00
{{ partial "toc.html" . }}
2025-03-29 12:51:42 +00:00
<article class="hx:w-full hx:break-words hx:flex hx:min-h-[calc(100vh-var(--navbar-height))] hx:min-w-0 hx:justify-center hx:pb-8 hx:pr-[calc(env(safe-area-inset-right)-1.5rem)]">
<main class="hx:w-full hx:min-w-0 hextra-max-content-width hx:px-6 hx:pt-4 hx:md:px-12">
{{ partial "breadcrumb.html" (dict "page" . "enable" true) }}
2023-07-29 17:41:25 +01:00
<div class="content">
{{ if .Title }}
<div class="hx:flex hx:flex-col hx:sm:flex-row hx:items-start hx:sm:items-center hx:sm:justify-between hx:gap-4 hx:mb-4">
<h1 class="hx:mb-0">{{ .Title }}</h1>
{{ partial "components/page-context-menu" . }}
</div>
{{ end }}
2023-07-29 17:41:25 +01:00
{{ .Content }}
</div>
2023-08-09 22:36:20 +01:00
{{ partial "components/last-updated.html" . }}
{{- if (site.Params.page.displayPagination | default true) -}}
{{- partial "components/pager.html" . -}}
{{- end -}}
2023-09-26 23:33:27 +01:00
{{ partial "components/comments.html" . }}
2023-07-29 17:41:25 +01:00
</main>
</article>
</div>
2024-09-14 15:28:30 +02:00
{{ end }}