2023-08-07 23:48:07 +01:00
|
|
|
{{ define "main" }}
|
2023-10-28 10:56:58 -04:00
|
|
|
{{- $readMore := (T "readMore") | default "Read more →" -}}
|
2024-02-20 17:59:31 -05:00
|
|
|
<div class="hx-mx-auto hx-flex {{ partial `utils/page-width` . }}">
|
2024-12-29 00:33:09 +00:00
|
|
|
{{ partial "sidebar.html" (dict "context" . "disableSidebar" true "displayPlaceholder" true) }}
|
2024-02-20 17:59:31 -05: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 hx-max-w-6xl hx-px-6 hx-pt-4 md:hx-px-12">
|
|
|
|
<br class="hx-mt-1.5 hx-text-sm" />
|
2024-09-14 15:28:30 +02:00
|
|
|
{{ if .Title }}<h1 class="hx-text-center hx-mt-2 hx-text-4xl hx-font-bold hx-tracking-tight hx-text-slate-900 dark:hx-text-slate-100">{{ .Title }}</h1>{{ end }}
|
2023-08-21 23:41:37 +01:00
|
|
|
<div class="content">{{ .Content }}</div>
|
2024-04-02 09:52:26 +02:00
|
|
|
{{- $pages := partial "utils/sort-pages" (dict "page" . "by" site.Params.blog.list.sortBy "order" site.Params.blog.list.sortOrder) -}}
|
|
|
|
{{- range $pages }}
|
2024-02-20 17:59:31 -05:00
|
|
|
<div class="hx-mb-10">
|
|
|
|
<h3><a style="color: inherit; text-decoration: none;" class="hx-block hx-font-semibold hx-mt-8 hx-text-2xl " href="{{ .RelPermalink }}">{{ .Title }}</a></h3>
|
2023-10-28 10:56:58 -04:00
|
|
|
{{- if site.Params.blog.list.displayTags -}}
|
|
|
|
{{ with .Params.tags }}
|
2024-02-20 17:59:31 -05:00
|
|
|
<p class="hx-opacity-50 hx-text-sm hx-leading-7">
|
|
|
|
{{- range . }}<a class="hx-inline-block hx-mr-2">#{{ . }}</a>{{ end -}}
|
2023-10-28 10:56:58 -04:00
|
|
|
</p>
|
|
|
|
{{ end -}}
|
|
|
|
{{- end -}}
|
2024-02-20 17:59:31 -05:00
|
|
|
<p class="hx-opacity-80 hx-mt-4 hx-leading-7">{{- partial "utils/page-description" . -}}</p>
|
|
|
|
<p class="hx-opacity-80 hx-mt-1 hx-leading-7">
|
|
|
|
<a class="hx-text-[color:hsl(var(--primary-hue),100%,50%)] hx-underline hx-underline-offset-2 hx-decoration-from-font" href="{{ .RelPermalink }}">
|
2023-10-28 10:56:58 -04:00
|
|
|
{{- $readMore -}}
|
|
|
|
</a>
|
2023-08-07 23:48:07 +01:00
|
|
|
</p>
|
2024-02-20 17:59:31 -05:00
|
|
|
<p class="hx-opacity-50 hx-text-sm hx-mt-4 hx-leading-7">{{ partial "utils/format-date" .Date }}</p>
|
2023-08-07 23:48:07 +01:00
|
|
|
</div>
|
2024-04-02 09:52:26 +02:00
|
|
|
{{ end -}}
|
2023-08-07 23:48:07 +01:00
|
|
|
</main>
|
|
|
|
</article>
|
2024-02-20 17:59:31 -05:00
|
|
|
<div class="max-xl:hx-hidden hx-h-0 hx-w-64 hx-shrink-0"></div>
|
2023-08-07 23:48:07 +01:00
|
|
|
</div>
|
2024-09-14 15:28:30 +02:00
|
|
|
{{- end -}}
|