pi-www-theme-soho/layouts/home.html

40 lines
938 B
HTML
Raw Permalink Normal View History

{{ define "main" -}}
<div class="post">
<h1 class="title">{{ .Title }}</h1>
{{ with .Params.tagline }}<span class="tagline">{{ . }}</span>{{ end }}
{{ if ne .Type "page" -}}
<div class="post-date">
<time datetime="{{ .Date.Format "2006-01-02T15:04:05Z0700" }}">{{ .Date.Format "2. 1. 2006" }}</time>
</div>
{{- end }}
<div>
{{ .Content }}
</div>
{{ $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
*/}}
{{ 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>
{{- end }}