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">
|
|
|
|
<use xlink:href="#bookmark"></use>
|
|
|
|
</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 }}
|
|
|
|
<strong aria-hidden="true">Publish date: </strong>{{ $publishDate.Format $dateFormat }}
|
|
|
|
{{ with .Lastmod }}
|
|
|
|
{{ if gt . $publishDate }}
|
|
|
|
<br>
|
|
|
|
<strong aria-hidden="true">Last mod date: </strong>{{ .Format $dateFormat }}
|
|
|
|
{{ 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">
|
|
|
|
<strong aria-hidden="true">Tags: </strong>
|
|
|
|
<ul 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">
|
|
|
|
<use xlink:href="#tag"></use>
|
|
|
|
</svg>
|
2019-03-05 19:19:53 +01:00
|
|
|
{{ $href := print ("tags/" | absLangURL) (. | urlize) "/" }}
|
|
|
|
<a href="{{ $href }}">{{ . }}</a>
|
2017-11-02 16:39:45 +01:00
|
|
|
</li>
|
|
|
|
{{ end }}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
2019-04-15 04:24:47 +02:00
|
|
|
|
2019-02-14 18:37:42 +01:00
|
|
|
{{ if ne .Params.toc false }}
|
2017-11-02 16:39:45 +01:00
|
|
|
{{ partial "toc" . }}
|
|
|
|
{{ end }}
|
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 }}
|