49 lines
1.2 KiB
HTML
49 lines
1.2 KiB
HTML
{{ define "main" -}}
|
|
<!-- single.html -->
|
|
<div class="post">
|
|
<h1 class="title">{{ .Title }}</h1>
|
|
{{ with .Params.tagline }}<span class="tagline">{{ . }}</span>{{ end }}
|
|
|
|
{{ if not (in (slice "page" "event") .Type) -}}
|
|
<div class="post-date">
|
|
<time datetime="{{ .Date.Format "2006-01-02T15:04:05Z0700" }}">{{ .Date.Format "2. 1. 2006" }}</time>
|
|
</div>
|
|
{{- end }}
|
|
{{ if eq .Type "event" -}}
|
|
{{ with .Params.eventdate }}
|
|
{{ $d := . | time.AsTime }}
|
|
<div class="event-date">
|
|
<time datetime="{{ $d.Format "2006-01-02T15:04:05Z0700" }}">{{ $d.Format "2. 1. 2006" }}</time>
|
|
</div>
|
|
{{ end }}
|
|
{{- end}}
|
|
|
|
<div>
|
|
{{ .Content }}
|
|
</div>
|
|
|
|
{{ $Site := .Site }}
|
|
{{ with .Params.elements }}
|
|
{{ range . }}
|
|
{{ partial . ( dict "Site" $Site ) }}
|
|
{{ end }}
|
|
{{ end }}
|
|
|
|
|
|
{{ partial "tags.html" . }}
|
|
|
|
{{/*
|
|
{{ if (and (ne .Params.DisableShare true) (ne .Params.disable_share true)) -}}
|
|
{{ partial "share.html" . }}
|
|
{{- end }}
|
|
*/}}
|
|
|
|
{{ 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 }}
|