| 1 | {{- define "main" }} |
| 2 | <article class="post-single squad-report" data-pagefind-body> |
| 3 | {{ partial "pagefind-metadata.html" . }} |
| 4 | |
| 5 | <header class="post-header"> |
| 6 | {{ partial "breadcrumbs.html" . }} |
| 7 | <p class="section-topline">{{ .Type | humanize }}</p> |
| 8 | <h1 class="post-title entry-hint-parent">{{ .Title }}</h1> |
| 9 | {{- with (.Description | default .Params.summary) }} |
| 10 | <div class="post-description">{{ . }}</div> |
| 11 | {{- end }} |
| 12 | {{- if not (.Param "hideMeta") }} |
| 13 | <div class="post-meta"> |
| 14 | {{- partial "post_meta.html" . -}} |
| 15 | {{- partial "translation_list.html" . -}} |
| 16 | {{- partial "edit_post.html" . -}} |
| 17 | {{- partial "post_canonical.html" . -}} |
| 18 | </div> |
| 19 | {{- end }} |
| 20 | </header> |
| 21 | |
| 22 | {{ partial "report-shortcuts.html" . }} |
| 23 | |
| 24 | {{- if .Content }} |
| 25 | <div class="post-content md-content"> |
| 26 | {{- if not (.Param "disableAnchoredHeadings") }} |
| 27 | {{- partial "anchored_headings.html" .Content -}} |
| 28 | {{- else }}{{ .Content }}{{ end }} |
| 29 | </div> |
| 30 | {{- end }} |
| 31 | |
| 32 | <footer class="post-footer"> |
| 33 | {{- $tags := .Language.Params.Taxonomies.tag | default "tags" }} |
| 34 | {{- $categories := .Language.Params.Taxonomies.category | default "categories" }} |
| 35 | <ul class="post-tags"> |
| 36 | {{- range ($.GetTerms $categories) }} |
| 37 | <li class="post-tags__category"><a href="{{ .Permalink }}">{{ .LinkTitle }}</a></li> |
| 38 | {{- end }} |
| 39 | {{- range ($.GetTerms $tags) }} |
| 40 | <li class="post-tags__topic"><a href="{{ .Permalink }}">{{ .LinkTitle }}</a></li> |
| 41 | {{- end }} |
| 42 | </ul> |
| 43 | {{- if (.Param "ShowPostNavLinks") }} |
| 44 | {{- partial "post_nav_links.html" . }} |
| 45 | {{- end }} |
| 46 | {{- if (and site.Params.ShowShareButtons (ne .Params.disableShare true)) }} |
| 47 | {{- partial "share_icons.html" . -}} |
| 48 | {{- end }} |
| 49 | </footer> |
| 50 | |
| 51 | {{- if (.Param "comments") }} |
| 52 | {{- partial "comments.html" . }} |
| 53 | {{- end }} |
| 54 | </article> |
| 55 | {{- end }} |