pi-www-theme-soho/layouts/_default/single.html

41 lines
960 B
HTML
Raw Normal View History

2017-09-07 22:41:16 +03:00
{{ define "main" -}}
2022-04-10 19:39:52 +03:00
<!-- single.html -->
2017-09-07 22:41:16 +03:00
<div class="post">
<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">
2022-04-06 14:31:04 +03:00
<time datetime="{{ .Date.Format "2006-01-02T15:04:05Z0700" }}">{{ .Date.Format "2. 1. 2006" }}</time>
2020-02-10 20:38:11 +02:00
</div>
{{- end }}
<div>
2017-09-07 22:41:16 +03:00
{{ .Content }}
</div>
2022-04-10 19:39:52 +03:00
{{ $Site := .Site }}
{{ with .Params.elements }}
{{ range . }}
{{ partial . ( dict "Site" $Site ) }}
{{ end }}
{{ end }}
{{ partial "tags.html" . }}
2022-04-10 19:39:52 +03:00
{{/*
{{ if (and (ne .Params.DisableShare true) (ne .Params.disable_share true)) -}}
{{ partial "share.html" . }}
{{- end }}
2022-04-10 19:39:52 +03:00
*/}}
2020-02-10 20:38:11 +02:00
2021-02-25 22:56:48 +02:00
{{ if (and .Site.DisqusShortname (ne .Params.DisableComments true) (ne .Params.disable_comments true)) -}}
<div class="comments">
<h2>Comments</h2>
{{ template "_internal/disqus.html" . }}
</div>
{{- end }}
</div>
2018-08-29 20:18:14 +03:00
{{- end }}