2019-07-30 17:32:26 -04:00
|
|
|
{{ define "main" }}
|
2016-10-14 23:41:10 +03:00
|
|
|
<main>
|
|
|
|
<article>
|
|
|
|
<h1>{{ .Title }}</h1>
|
2021-08-01 13:37:49 +02:00
|
|
|
{{ if or .Date .Params.tags .Params.categories }}
|
|
|
|
<p>
|
|
|
|
<b>
|
|
|
|
Posted
|
|
|
|
{{ if .Date }}
|
|
|
|
on <time>{{ .Date.Format (default "2006-01-02 15:04:05" .Site.Params.dateFmt) }}</time>
|
|
|
|
{{ end }}
|
|
|
|
{{ with .Params.categories }}
|
|
|
|
in
|
|
|
|
{{ range first 1 . }}
|
|
|
|
<a href="{{ "/categories/" | relLangURL }}{{ . | urlize }}">{{ . }}</a>
|
|
|
|
{{- end -}}
|
|
|
|
{{- range after 1 . -}}
|
|
|
|
, <a href="{{ "/categories/" | relLangURL }}{{ . | urlize }}">{{ . }}</a>
|
|
|
|
{{- end -}}
|
|
|
|
{{ end }}
|
|
|
|
</b>
|
|
|
|
{{ with .WordCount }}
|
|
|
|
• {{ . }} words
|
|
|
|
{{ end }}
|
|
|
|
{{ with .ReadingTime }}
|
|
|
|
• {{ . }} minute read
|
|
|
|
{{ end }}
|
|
|
|
{{ with .Params.tags }}
|
|
|
|
<br>
|
|
|
|
Tags:
|
|
|
|
{{ range first 1 . }}
|
|
|
|
<a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a>
|
|
|
|
{{- end -}}
|
|
|
|
{{- range after 1 . -}}
|
|
|
|
, <a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a>
|
|
|
|
{{- end -}}
|
|
|
|
{{ end }}
|
|
|
|
</p>
|
|
|
|
{{ end }}
|
|
|
|
<div>
|
|
|
|
{{ .Content }}
|
|
|
|
</div>
|
2016-10-14 23:41:10 +03:00
|
|
|
</article>
|
|
|
|
</main>
|
2020-05-27 00:34:21 +02:00
|
|
|
{{ partial "sidebar.html" . }}
|
2019-07-30 17:32:26 -04:00
|
|
|
{{ end }}
|