Redesign media page (WIP)

This commit is contained in:
Ben Visness
2024-11-02 13:13:17 -05:00
parent ed33dfec70
commit e5b387e9b3
23 changed files with 55 additions and 3 deletions

View File

@@ -8,11 +8,44 @@
{{ range $sections }}
<div>
<div>
<h1><a href="{{ .RelPermalink }}">{{ .Title }}</a></h1>
<h2 class="mb-6"><a href="{{ .RelPermalink }}">{{ .Title }}</a></h2>
</div>
<div class="flex flex-col">
<div class="row">
{{ range .RegularPages.ByDate }}
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
<div class="col-12 md:col-6 lg:col-4 mb-3">
{{ $image := .Params.thumbnail }}
{{ if $image }}
<a href="{{ .RelPermalink }}">
{{ partial "image" (dict "Src" $image "Context" .Page "Alt" .Title "Class" "mb-3 w-full rounded") }}
</a>
{{ end }}
<div class="mb-3">
<a href="{{ .RelPermalink }}">
<h4 class="mb-1">
{{ .Title }}
</h4>
</a>
<div class="flex">
{{ with .Params.mediatype }}
<div class="mr-4">
<i class="fa-regular fa-folder mr-1"></i>
{{ if eq . "talk" }}Talk{{ end }}
{{ if eq . "demo" }}Demo{{ end }}
{{ if eq . "podcast" }}Podcast{{ end }}
{{ if eq . "chat" }}Fireside Chat{{ end }}
</div>
{{ end }}
<div>
<i class="fa-regular fa-circle-user mr-1"></i>
{{ range $i, $s := .Params.speakers -}}
{{ if gt $i 0 }}, {{ end }}{{ $s.name }}
{{- end }}
</div>
</div>
</div>
<p class="mb-6">{{ .Params.description }}</p>
</div>
{{ end }}
</div>
</div>