a
9aa43df629
The basic parts of the layouts/theme should work. I have only populated 2 albums so far.
29 lines
799 B
HTML
29 lines
799 B
HTML
{{ define "main" }}
|
|
{{ if not hugo.IsProduction }}
|
|
<aside class="development-info">
|
|
<p>template: tag.html</p>
|
|
{{ debug.Dump . }}
|
|
</aside>
|
|
{{ end }}
|
|
<main>
|
|
<header class="section">
|
|
<div class="container">
|
|
<h1 class="tag-page-title">tagged with #{{ .Title }}</h1>
|
|
</div>
|
|
</header>
|
|
<section class="section">
|
|
<div class="container">
|
|
{{ $album_pages := where .Pages "Type" "albums" }}
|
|
<h2 class="tag-page-subtitle">Albums ({{ $album_pages.Len }})</h2>
|
|
{{ partial "albums-list.html" $album_pages}}
|
|
</div>
|
|
</section>
|
|
<section class="section">
|
|
<div class="container">
|
|
{{ $photo_pages := where .Pages "Type" "photos"}}
|
|
<h2 class="tag-page-subtitle">Photos ({{ $photo_pages.Len }})</h2>
|
|
{{ partial "photos-list.html" $photo_pages }}
|
|
</div>
|
|
</section>
|
|
</main>
|
|
{{ end }} |