Initial media index
This commit is contained in:
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