2017-09-07 22:41:16 +03:00
|
|
|
{{ define "main" -}}
|
|
|
|
<div class="post">
|
2020-10-17 15:40:58 +03:00
|
|
|
<h1 class="title">{{ .Title }}</h1>
|
|
|
|
{{ with .Params.tagline }}<span class="tagline">{{ . }}</span>{{ end }}
|
2020-02-10 20:38:11 +02:00
|
|
|
|
|
|
|
{{ if ne .Type "page" -}}
|
|
|
|
<div class="post-date">
|
2020-06-15 20:52:15 +03:00
|
|
|
<time datetime="{{ .Date.Format "2006-01-02T15:04:05Z0700" }}">{{ .Date.Format "Jan 2, 2006" }}</time> · {{ .ReadingTime }} min read
|
2020-02-10 20:38:11 +02:00
|
|
|
</div>
|
|
|
|
{{- end }}
|
|
|
|
|
2020-10-17 15:40:58 +03:00
|
|
|
<div>
|
2017-09-07 22:41:16 +03:00
|
|
|
{{ .Content }}
|
2020-10-17 15:40:58 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
{{ partial "tags.html" . }}
|
|
|
|
|
|
|
|
{{ if (and (ne .Params.DisableShare true) (ne .Params.disable_share true)) -}}
|
|
|
|
{{ partial "share.html" . }}
|
|
|
|
{{- end }}
|
2017-09-07 22:41:16 +03:00
|
|
|
</div>
|
2014-04-27 01:25:13 +03:00
|
|
|
|
2020-06-15 23:08:36 +03:00
|
|
|
{{ if (and .Site.DisqusShortname (ne .Params.DisableComments true) (ne .Params.disable_comments true)) -}}
|
2017-09-07 22:41:16 +03:00
|
|
|
<h2>Comments</h2>
|
2017-09-07 22:52:10 +03:00
|
|
|
{{ template "_internal/disqus.html" . }}
|
2017-09-07 22:41:16 +03:00
|
|
|
{{- end }}
|
2020-02-10 20:38:11 +02:00
|
|
|
|
2018-08-29 20:18:14 +03:00
|
|
|
{{- end }}
|