Alle Register hinzugefügt
This commit is contained in:
38
layouts/hauptverein/list.html
Normal file
38
layouts/hauptverein/list.html
Normal file
@@ -0,0 +1,38 @@
|
||||
{{ define "main" }} {{ .Scratch.Set "scope" "list" }} {{ $enableToc :=
|
||||
.Params.showTableOfContents | default (site.Params.list.showTableOfContents |
|
||||
default false) }} {{ $showToc := and $enableToc (in .TableOfContents "<ul") }}
|
||||
{{/* Hero */}} {{ if site.Params.list.showHero | default false }} {{ $heroStyle
|
||||
:= print "hero/" site.Params.list.heroStyle ".html" }} {{ if templates.Exists (
|
||||
printf "partials/%s" $heroStyle ) }} {{ partial $heroStyle . }} {{ else }} {{
|
||||
partial "hero/basic.html" . }} {{ end }} {{ end }} {{/* Header */}}
|
||||
<header>
|
||||
{{ if .Params.showBreadcrumbs | default (site.Params.list.showBreadcrumbs |
|
||||
default false) }} {{ partial "breadcrumbs.html" . }} {{ end }}
|
||||
<h1 class="mt-5 text-4xl font-extrabold text-neutral-900 dark:text-neutral">
|
||||
{{ .Title }}
|
||||
</h1>
|
||||
<div
|
||||
class="mt-1 mb-2 text-base text-neutral-500 dark:text-neutral-400 print:hidden"
|
||||
>
|
||||
{{ partial "article-meta/list.html" (dict "context" . "scope" "single") }}
|
||||
</div>
|
||||
</header>
|
||||
|
||||
{{/* Description (markdown content) */}} {{ $tocMargin := cond $showToc "mt-12"
|
||||
"mt-0" }} {{ $topClass := cond (hasPrefix site.Params.header.layout "fixed")
|
||||
"lg:top-[140px]" "lg:top-10" }}
|
||||
<section
|
||||
class="{{ $tocMargin }} prose flex max-w-full flex-col dark:prose-invert lg:flex-row"
|
||||
>
|
||||
{{ if $showToc }}
|
||||
<div class="order-first px-0 lg:order-last lg:max-w-xs lg:ps-8">
|
||||
<div class="toc ps-5 lg:sticky {{ $topClass }}">
|
||||
{{ partial "toc.html" . }}
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
<div class="min-w-0 min-h-0 max-w-prose">{{ .Content }}</div>
|
||||
</section>
|
||||
|
||||
{{/* No automatic article listing - content is controlled via shortcodes in the
|
||||
markdown */}} {{ end }}
|
||||
Reference in New Issue
Block a user