2021-05-08 19:22:48 +00:00
|
|
|
{{ define "title" }}
|
2021-08-04 21:26:38 +00:00
|
|
|
<title>{{ mdtitle .Data.Title }} - {{ mdtitle .Blog.Title }}</title>
|
2021-05-08 19:22:48 +00:00
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ define "main" }}
|
|
|
|
<main>
|
2021-08-04 21:26:38 +00:00
|
|
|
{{ with .Data.Title }}<h1>{{ mdtitle . }}</h1>{{ end }}
|
2021-05-08 19:22:48 +00:00
|
|
|
{{ with .Data.Description }}{{ md . }}{{ end }}
|
2021-06-18 12:32:03 +00:00
|
|
|
<p><a href="{{ .Blog.RelativePath .Data.Download }}" class="button" download>{{ string .Blog.Lang "download" }}</a></p>
|
2021-05-08 19:22:48 +00:00
|
|
|
{{ $lang := .Blog.Lang }}
|
|
|
|
{{ range .Data.Outlines }}
|
2021-05-10 18:34:30 +00:00
|
|
|
{{ $title := .Title }}
|
|
|
|
{{ if not $title }}{{ $title = .Text }}{{ end }}
|
2021-05-25 14:57:37 +00:00
|
|
|
<h2 id="{{ urlize $title }}">{{ $title }} ({{ len .Outlines }})</h2>
|
2021-05-08 19:22:48 +00:00
|
|
|
<ul>
|
|
|
|
{{ range .Outlines }}
|
2021-05-10 18:34:30 +00:00
|
|
|
{{ $ct := .Title }}
|
|
|
|
{{ if not $ct }}{{ $ct = .Text }}{{ end }}
|
2021-06-18 12:32:03 +00:00
|
|
|
<li><a href="{{ .HTMLURL }}" target="_blank">{{ $ct }}</a> (<a href="{{ .XMLURL }}" target="_blank">{{ string $lang "feed" }}</a>)</li>
|
2021-05-08 19:22:48 +00:00
|
|
|
{{ end }}
|
|
|
|
</ul>
|
|
|
|
{{ end }}
|
|
|
|
</main>
|
2021-07-12 14:19:28 +00:00
|
|
|
{{ if .CommentsEnabled }}
|
|
|
|
{{ include "interactions" . }}
|
|
|
|
{{ end }}
|
2021-05-08 19:22:48 +00:00
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ define "blogroll" }}
|
|
|
|
{{ template "base" . }}
|
|
|
|
{{ end }}
|