Initial media index

seattle2022
Asaf Gartner 2024-11-02 04:49:43 +02:00
parent e23b5e94af
commit ce4b17ac2a
5 changed files with 37 additions and 2 deletions

View File

@ -0,0 +1,3 @@
+++
title="Media"
+++

View File

@ -0,0 +1,5 @@
+++
title="Handmade Boston 2023"
date="2023-07-03T09:00:00-04:00"
enddate="2023-07-04T17:00:00-04:00"
+++

View File

@ -0,0 +1,5 @@
+++
title="Handmade Seattle 2023"
date="2023-11-15T09:00:00-08:00"
enddate="2023-11-17T17:00:00-08:00"
+++

View File

@ -16,7 +16,7 @@
</head>
<body>
<body class="flex flex-col" style="min-height: 100svh">
<!-- cache partial only in production -->
{{ if hugo.IsProduction }}
{{ partialCached "preloader.html" . }}
@ -39,7 +39,7 @@
{{ partial "search-modal.html" (dict "Context" . ) }}
<main>
<main class="grow">
{{ block "main" . }}{{ end }}
</main>

View File

@ -0,0 +1,22 @@
{{ define "main" }}
<section class="mb-8">
<div class="container flex flex-col gap-5">
{{ $sections := slice . }}
{{ if .Sections }}
{{ $sections = .Sections.ByDate.Reverse }}
{{ end }}
{{ range $sections }}
<div>
<div>
<h1><a href="{{ .RelPermalink }}">{{ .Title }}</a></h1>
</div>
<div class="flex flex-col">
{{ range .RegularPages.ByDate }}
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
{{ end }}
</div>
</div>
{{ end }}
</div>
</section>
{{ end }}