Initial media index
parent
e23b5e94af
commit
ce4b17ac2a
|
|
@ -0,0 +1,3 @@
|
|||
+++
|
||||
title="Media"
|
||||
+++
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
+++
|
||||
title="Handmade Boston 2023"
|
||||
date="2023-07-03T09:00:00-04:00"
|
||||
enddate="2023-07-04T17:00:00-04:00"
|
||||
+++
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
+++
|
||||
title="Handmade Seattle 2023"
|
||||
date="2023-11-15T09:00:00-08:00"
|
||||
enddate="2023-11-17T17:00:00-08:00"
|
||||
+++
|
||||
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
|
|
@ -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 }}
|
||||
Loading…
Reference in New Issue