Initial media index
This commit is contained in:
3
content/english/media/_index.md
Normal file
3
content/english/media/_index.md
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
+++
|
||||||
|
title="Media"
|
||||||
|
+++
|
||||||
5
content/english/media/boston-2023/_index.md
Normal file
5
content/english/media/boston-2023/_index.md
Normal 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"
|
||||||
|
+++
|
||||||
5
content/english/media/seattle-2023/_index.md
Normal file
5
content/english/media/seattle-2023/_index.md
Normal 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"
|
||||||
|
+++
|
||||||
@@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body class="flex flex-col" style="min-height: 100svh">
|
||||||
<!-- cache partial only in production -->
|
<!-- cache partial only in production -->
|
||||||
{{ if hugo.IsProduction }}
|
{{ if hugo.IsProduction }}
|
||||||
{{ partialCached "preloader.html" . }}
|
{{ partialCached "preloader.html" . }}
|
||||||
@@ -39,7 +39,7 @@
|
|||||||
{{ partial "search-modal.html" (dict "Context" . ) }}
|
{{ partial "search-modal.html" (dict "Context" . ) }}
|
||||||
|
|
||||||
|
|
||||||
<main>
|
<main class="grow">
|
||||||
{{ block "main" . }}{{ end }}
|
{{ block "main" . }}{{ end }}
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
|
|||||||
22
layouts/media/section.html
Normal file
22
layouts/media/section.html
Normal 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 }}
|
||||||
Reference in New Issue
Block a user