2017-11-02 16:39:45 +01:00
|
|
|
{{ define "main" }}
|
|
|
|
<main id="main">
|
|
|
|
<h1>
|
|
|
|
<svg class="bookmark-icon" aria-hidden="true" viewBox="0 0 40 50" focusable="false">
|
2022-05-31 04:33:30 +02:00
|
|
|
<use href="#bookmark"></use>
|
2017-11-02 16:39:45 +01:00
|
|
|
</svg>
|
|
|
|
{{ .Title }}
|
|
|
|
</h1>
|
2019-04-15 04:24:47 +02:00
|
|
|
|
2019-02-12 23:25:13 +01:00
|
|
|
<div class="date">
|
2019-02-14 18:31:24 +01:00
|
|
|
{{ $dateFormat := $.Site.Params.dateFormat | default "Jan 2, 2006" }}
|
2019-04-15 04:24:47 +02:00
|
|
|
{{ $publishDate := .PublishDate }}
|
2020-06-11 03:01:12 +02:00
|
|
|
<strong>{{ T "publish_date" }} </strong>{{ $publishDate.Format $dateFormat }}
|
2019-04-15 04:24:47 +02:00
|
|
|
{{ with .Lastmod }}
|
|
|
|
{{ if gt . $publishDate }}
|
|
|
|
<br>
|
2020-06-11 03:01:12 +02:00
|
|
|
<strong>{{ T "last_updated" }} </strong>{{ .Format $dateFormat }}
|
2019-04-15 04:24:47 +02:00
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
2019-02-12 23:25:13 +01:00
|
|
|
</div>
|
2019-04-15 04:24:47 +02:00
|
|
|
|
2019-02-14 18:34:55 +01:00
|
|
|
{{ with .Params.tags }}
|
2017-11-02 16:39:45 +01:00
|
|
|
<div class="tags">
|
2020-06-11 03:01:12 +02:00
|
|
|
<strong>{{ T "tags" }} </strong>
|
2020-06-01 20:47:51 +02:00
|
|
|
<ul aria-label="{{ T "aria_label_tags" }}">
|
2019-02-14 18:34:55 +01:00
|
|
|
{{ range . }}
|
2017-11-02 16:39:45 +01:00
|
|
|
<li>
|
|
|
|
<svg class="tag-icon" aria-hidden="true" viewBox="0 0 177.16535 177.16535" focusable="false">
|
2022-05-31 04:33:30 +02:00
|
|
|
<use href="#tag"></use>
|
2017-11-02 16:39:45 +01:00
|
|
|
</svg>
|
2020-11-25 03:51:01 +01:00
|
|
|
{{ $href := print ("tags/" | relLangURL) (. | urlize) "/" }}
|
2019-03-05 19:19:53 +01:00
|
|
|
<a href="{{ $href }}">{{ . }}</a>
|
2017-11-02 16:39:45 +01:00
|
|
|
</li>
|
|
|
|
{{ end }}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
2021-09-12 21:24:53 +02:00
|
|
|
|
|
|
|
{{ partial "toc.html" . }}
|
2019-04-15 04:24:47 +02:00
|
|
|
|
2017-11-02 16:39:45 +01:00
|
|
|
{{ .Content }}
|
|
|
|
</main>
|
2019-03-05 21:59:47 +01:00
|
|
|
{{ partial "disqus.html" . }}
|
2017-11-02 16:39:45 +01:00
|
|
|
{{ end }}
|