main
html 66 lines 3.28 KB
Raw
1 {{- $page := . -}}
2 <footer class="post-footer article-footer">
3 {{- $tags := $page.Language.Params.Taxonomies.tag | default "tags" -}}
4 {{- $categories := $page.Language.Params.Taxonomies.category | default "categories" -}}
5 {{- $week := $page.Params.week | default $page.Title -}}
6 {{- $articleURL := $page.Permalink -}}
7 {{- $issueTitle := printf "Correction report: %s" $week -}}
8 {{- $issueBody := printf "## Correction / source / safety concern\n\nArticle: %s\nWeek: %s\n\nConcern type: correction / source concern / safety concern\nSuggested labels for maintainers: correction, source concern, safety concern, or bias/framing concern\n\nWhat should be corrected or reviewed?\n\n\nSuggested source(s) or evidence:\n\n\nVisible correction note needed? yes/no\n" $articleURL $week -}}
9 {{- $reportURL := printf "https://github.com/jmservera/SquadScope/issues/new?title=%s&body=%s&labels=%s" ($issueTitle | urlquery) ($issueBody | urlquery) ("correction,reader-report" | urlquery) -}}
10 <div class="article-footer__taxonomies" aria-label="Report taxonomy">
11 <ul class="post-tags">
12 {{- range ($page.GetTerms $categories) }}
13 <li class="post-tags__category"><a href="{{ .Permalink }}">{{ .LinkTitle }}</a></li>
14 {{- end }}
15 {{- range ($page.GetTerms $tags) }}
16 <li class="post-tags__topic"><a href="{{ .Permalink }}">{{ .LinkTitle }}</a></li>
17 {{- end }}
18 </ul>
19 </div>
20
21 <nav class="article-week-nav" aria-label="Weekly report navigation">
22 {{- with $page.PrevInSection }}
23 <a class="article-week-nav__link" href="{{ .RelPermalink }}">
24 <span>Read prior week</span>
25 <strong>{{ .Title }}</strong>
26 </a>
27 {{- end }}
28 {{- with $page.NextInSection }}
29 <a class="article-week-nav__link article-week-nav__link--next" href="{{ .RelPermalink }}">
30 <span>Read next week</span>
31 <strong>{{ .Title }}</strong>
32 </a>
33 {{- end }}
34 </nav>
35
36 <div class="article-footer__prompt">
37 <a href="{{ "index.xml" | absURL }}">Subscribe via RSS</a>
38 <span aria-hidden="true">·</span>
39 <a href="mailto:?subject={{ $page.Title | urlquery }}&amp;body={{ $page.Permalink | urlquery }}">Share this report</a>
40 </div>
41
42 <section class="article-correction-path" aria-labelledby="article-correction-path-title">
43 <h2 id="article-correction-path-title" class="article-correction-path__title">Methodology and corrections</h2>
44 <p>
45 Read the <a href="{{ "methodology/" | absURL }}">methodology and correction policy</a>,
46 or <a href="{{ $reportURL | safeURL }}">report a correction, source concern, or safety concern</a>.
47 The report link prefills this article URL and week.
48 </p>
49 </section>
50
51 <p class="article-footer__updated">Last updated <time datetime="{{ $page.Lastmod.Format "2006-01-02T15:04:05Z07:00" }}">{{ $page.Lastmod.Format "Jan 2, 2006" }}</time></p>
52
53 {{- with $page.Params.errata }}
54 <section class="article-errata" aria-label="Article corrections">
55 <h2 class="article-errata__title">Errata</h2>
56 <ul class="article-errata__list">
57 {{- range . }}
58 <li>
59 {{- with .date }}<time datetime="{{ time.Format "2006-01-02" . }}">{{ time.Format "Jan 2, 2006" . }}</time>{{ end -}}
60 {{- with .note }}<span>{{ . | markdownify }}</span>{{ end -}}
61 </li>
62 {{- end }}
63 </ul>
64 </section>
65 {{- end }}
66 </footer>