32 lines
924 B
HTML
32 lines
924 B
HTML
|
{{ define "main" }}
|
||
|
<div class="wrap mt post">
|
||
|
<div>
|
||
|
{{- $date := (dateFormat "02. January 2006" .Date) -}}
|
||
|
<p class="post_date">{{ $date }}</p>
|
||
|
<h1 class="post_title">{{ .Title }}</h1>
|
||
|
<div class="post_body">
|
||
|
<div class="post_inner">
|
||
|
{{- with .Params.image }}
|
||
|
{{- $image := . }}
|
||
|
{{- if ne (in . "images") true }}
|
||
|
{{- $image = printf "images/%s" . }}
|
||
|
{{- end }}
|
||
|
{{- $image = absURL $image }}
|
||
|
{{- if in . "https://" }}
|
||
|
{{- $image = . }}
|
||
|
{{- end }}
|
||
|
<img src="{{ $image }}" alt="{{ . }}" class="post_thumbnail">
|
||
|
{{- end }}
|
||
|
{{- .Content }}
|
||
|
</div>
|
||
|
<div class="post_extra mb-2">
|
||
|
{{- partialCached "share" . }}
|
||
|
</div>
|
||
|
<div>
|
||
|
{{ template "_internal/disqus.html" . }}
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
{{ end }}
|