This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
<br>
|
||||
<section class="mb-4 text-lg">
|
||||
<h4 id="date" class="flex flex-row items-center"><span class="icon-access_time text-2xl mr-2"></span>
|
||||
{{ .Date.Format "2006/01/02" }} </h4>
|
||||
{{ .Date.Format "02.01.2006" }} </h4>
|
||||
{{ if .Params.author }}
|
||||
<h4 class="flex flex-row items-center"><span class="icon-person text-2xl mr-2"></span>{{.Params.author}}
|
||||
</h4>
|
||||
@@ -34,8 +34,16 @@
|
||||
{{ end }}
|
||||
</section>
|
||||
{{ if .Params.image }}
|
||||
<img class="my-4" src="{{ .Params.image | absURL }}">
|
||||
{{ $image := .Resources.GetMatch .Params.image }}
|
||||
{{ if $image }}
|
||||
<!-- wenn Bild im Artikelordner -->
|
||||
<img class="my-4" src="{{ $image.Permalink }}">
|
||||
{{ else }}
|
||||
<!-- falls Bild im static-Ordner oder extern -->
|
||||
<img class="my-4" src="{{ .Params.image | absURL }}">
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
<div class="content text-white-custom header-green-custom md:prose-lg lg:prose-xl max-w-none py-1">{{.Content}}</div>
|
||||
<hr class="py-4">
|
||||
{{- with .Site.Params.disqusShortname }}
|
||||
|
||||
Reference in New Issue
Block a user