2022-09-06 19:06:21 +01:00
|
|
|
|
{{/* section is AKA list */}}
|
|
|
|
|
|
|
|
|
|
{{- define "main" }}
|
2022-09-07 08:25:44 +01:00
|
|
|
|
<div class="main-icon">@</div>
|
2022-09-06 19:06:21 +01:00
|
|
|
|
|
2022-09-07 09:20:55 +01:00
|
|
|
|
<div class="content">
|
2022-09-07 19:35:11 +01:00
|
|
|
|
<h1>{{ .Title }}</h1>
|
|
|
|
|
{{ with .Param "subtitle" }}<div class="subtitle">{{ . }}</div>{{ end }}
|
|
|
|
|
|
2022-09-07 09:20:55 +01:00
|
|
|
|
<div class="first-entry">
|
|
|
|
|
<section class="entry-content">{{ .Description | markdownify }}</section>
|
2022-09-07 09:49:18 +01:00
|
|
|
|
{{- partial "newsletter_sub_form.html"}}
|
2022-09-06 19:06:21 +01:00
|
|
|
|
</div>
|
|
|
|
|
|
2022-09-08 14:55:35 +01:00
|
|
|
|
{{ $pages := where .Pages "Params.hidden" "!=" true }}
|
|
|
|
|
{{ if $pages }}
|
2023-01-27 12:54:16 +00:00
|
|
|
|
<h2>Latest Issues</h2>
|
2022-09-06 19:06:21 +01:00
|
|
|
|
|
2022-09-07 15:29:52 +01:00
|
|
|
|
<div class="list">
|
2022-09-08 14:55:35 +01:00
|
|
|
|
{{- range first 5 $pages }}
|
2022-09-07 15:29:52 +01:00
|
|
|
|
<div class="item">
|
|
|
|
|
<div class="date">
|
|
|
|
|
{{- if not .Date.IsZero -}}
|
|
|
|
|
{{ .Date | time.Format (default "January 2, 2006" site.Params.DateFormat) }}
|
|
|
|
|
{{- end }}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="title">
|
|
|
|
|
<a href="{{ .Permalink }}">{{- .Title }}
|
|
|
|
|
{{- if .Draft }}<em>[Draft]</em>{{- end }}
|
|
|
|
|
{{- if .Weight }}<em>[Pinned]</em>{{- end }}
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="issueno">{{ with .Param "issueno" }}#{{ . }}{{ end }}</div>
|
|
|
|
|
</div>
|
2022-09-06 19:06:21 +01:00
|
|
|
|
{{- end }}
|
2022-09-07 15:29:52 +01:00
|
|
|
|
</div>
|
2022-09-08 14:55:35 +01:00
|
|
|
|
{{ end }}
|
2022-09-06 19:06:21 +01:00
|
|
|
|
|
2023-01-27 12:54:16 +00:00
|
|
|
|
<h2>Links</h2>
|
2022-09-06 19:06:21 +01:00
|
|
|
|
|
2022-09-08 16:17:43 +01:00
|
|
|
|
{{- partial "inline_links.html" . -}}
|
2022-09-07 09:20:55 +01:00
|
|
|
|
</div>
|
2022-09-06 19:06:21 +01:00
|
|
|
|
{{ end }}
|