2023-09-23 08:44:56 +00:00
|
|
|
{{ define "main" }}
|
2023-09-24 22:42:46 +00:00
|
|
|
{{ $colors := slice "cyan" "yellow" "pink"}}
|
|
|
|
{{ $opts := len $colors }}
|
|
|
|
{{ range $i, $page := .Pages.ByDate.Reverse }}
|
|
|
|
{{ $opt := mod $i $opts }}
|
|
|
|
<div class="card" style="border-color: {{ index $colors $opt }}">
|
2023-09-23 23:25:31 +00:00
|
|
|
<a href="{{ anchorize .Page.Name }}">
|
|
|
|
<h5 class="card-header postcard card-title">{{ .Title }}</h5>
|
|
|
|
</a>
|
2023-09-23 08:44:56 +00:00
|
|
|
<div class="card-body postcard">
|
2023-09-24 22:25:51 +00:00
|
|
|
{{ if .Page.Params.Article }}
|
|
|
|
<p class="card-text">{{ .Description }}</p>
|
|
|
|
{{ else }}
|
|
|
|
<p class="card-text">{{ .Content }}</p>
|
|
|
|
{{ end }}
|
2023-09-23 08:44:56 +00:00
|
|
|
</div>
|
|
|
|
<div class="card-footer text-muted postcard">
|
|
|
|
{{ .Date | time.Format ":date_short" }} {{ .Date | time.Format ":time_long"}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|