2022-06-29 03:33:10 +00:00
|
|
|
{{ define "main" }}
|
2023-02-25 05:13:45 +00:00
|
|
|
{{ partial "scrolling-image-header" . }}
|
|
|
|
<section class="container-fluid list-main">
|
|
|
|
<div class="container px-5">
|
|
|
|
{{ block "content" . }}
|
|
|
|
{{ .Content }}
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
2023-04-01 05:14:32 +00:00
|
|
|
|
|
|
|
<div class="row" data-masonry='{"percentPosition": true}'>
|
|
|
|
{{ range .Pages }}
|
2023-04-01 06:35:21 +00:00
|
|
|
<div class="col-xl-6 mb-4">
|
2023-04-01 05:14:32 +00:00
|
|
|
<div class="card">
|
|
|
|
<div class="card-body">
|
|
|
|
{{/* Thumbnail images should be stored as 'thumbnail'.* in the page bundle, but
|
|
|
|
historically they might have been referenced as 'thumbnail' in the front
|
|
|
|
matter, or (even more historically) as 'cardImage'. Use scratch to
|
|
|
|
normalize all these different systems.
|
|
|
|
*/}}
|
|
|
|
{{ $bundleGlob := "thumbnail.*" }}
|
|
|
|
{{ $frontThumbGlob := print "images/" (.Params.thumbnail) ".*" }}
|
|
|
|
{{ $frontCardGlob := print "images/" (.Params.cardImage) ".jpg" }}
|
|
|
|
{{ $allThumbnailGlob := print "{" $frontThumbGlob "," $frontCardGlob "," $bundleGlob "}" }}
|
|
|
|
{{ with .Resources.GetMatch $allThumbnailGlob }}
|
|
|
|
{{ $thumbnail := . }}
|
|
|
|
{{ $thumbnailResized := $thumbnail.Resize "600x" }}
|
|
|
|
<img
|
|
|
|
class="img img-thumbnail float-start me-3 md-max-width-33"
|
|
|
|
src="{{ $thumbnailResized.RelPermalink }}"
|
|
|
|
alt="Thumbnail of {{ .Title }}"
|
|
|
|
/>
|
|
|
|
{{ end }}
|
2023-04-01 05:23:37 +00:00
|
|
|
{{/* Prefer full-text links over local ones */}}
|
|
|
|
{{ $link := default .RelPermalink (index .Params "link") }}
|
|
|
|
<a href="{{ $link }}"><h3 class="card-title">{{ .Title }}</h3></a>
|
2023-04-01 06:15:16 +00:00
|
|
|
|
2023-04-01 06:40:52 +00:00
|
|
|
<div>
|
|
|
|
{{ dateFormat "02 Jan 2006" .Date }}
|
|
|
|
</div>
|
|
|
|
|
2023-04-01 06:15:16 +00:00
|
|
|
{{ range (.GetTerms "people") }}
|
|
|
|
<a
|
|
|
|
href="{{ .RelPermalink }}"
|
|
|
|
class="icon-link card-link {{ if eq .LinkTitle "Thomas A. Christensen II" }}
|
|
|
|
fw-bolder
|
|
|
|
{{ end }}"
|
|
|
|
><i class="fad fa-user"></i> {{ .LinkTitle }}</a
|
|
|
|
>
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
|
2023-04-01 05:14:32 +00:00
|
|
|
<p class="card-text">
|
|
|
|
{{ .Summary }}
|
|
|
|
<strong
|
|
|
|
><small
|
2023-04-01 05:23:37 +00:00
|
|
|
><a href="{{ $link }}">Read more »</a></small
|
2023-04-01 05:14:32 +00:00
|
|
|
></strong
|
|
|
|
>
|
|
|
|
</p>
|
|
|
|
</div>
|
2023-04-01 06:31:42 +00:00
|
|
|
|
|
|
|
<div class="card-footer">
|
|
|
|
{{ range (.GetTerms "tags") }}
|
|
|
|
<a href="{{ .RelPermalink }}" class="icon-link card-link"
|
|
|
|
><i class="fad fa-tag"></i> {{ .LinkTitle }}</a
|
|
|
|
>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
2023-04-01 05:14:32 +00:00
|
|
|
</div>
|
|
|
|
<!-- </card> -->
|
|
|
|
</div>
|
|
|
|
<!-- </col> -->
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
<!-- </row> -->
|
2023-02-25 05:13:45 +00:00
|
|
|
</section>
|
2022-06-29 03:33:10 +00:00
|
|
|
{{ end }}
|