forked from Bunteshaus/bunteshaus.de
small fixes
This commit is contained in:
parent
07a0767140
commit
1dcc4a11f7
|
@ -1,14 +0,0 @@
|
||||||
---
|
|
||||||
title: "asd"
|
|
||||||
date: 2022-04-05T12:49:11+02:00
|
|
||||||
newscategories: []
|
|
||||||
eventcategories: []
|
|
||||||
when: ""
|
|
||||||
featured: false
|
|
||||||
covid: ""
|
|
||||||
contact: ""
|
|
||||||
price: ""
|
|
||||||
draft: false
|
|
||||||
tags: []
|
|
||||||
---
|
|
||||||
asdasd
|
|
|
@ -1,14 +0,0 @@
|
||||||
---
|
|
||||||
title: "wwww"
|
|
||||||
date: 2022-04-05T13:31:27+02:00
|
|
||||||
newscategories: []
|
|
||||||
eventcategories: []
|
|
||||||
when: ""
|
|
||||||
featured: false
|
|
||||||
covid: ""
|
|
||||||
contact: ""
|
|
||||||
price: ""
|
|
||||||
draft: false
|
|
||||||
tags: []
|
|
||||||
---
|
|
||||||
wwwwwww
|
|
|
@ -56,27 +56,16 @@
|
||||||
{{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
|
{{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
|
||||||
<guid>{{ .Permalink }}-{{ $hash }}</guid>
|
<guid>{{ .Permalink }}-{{ $hash }}</guid>
|
||||||
<description>
|
<description>
|
||||||
{{ $updated := "" }}
|
|
||||||
{{ if gt .Lastmod.Unix .Date.Unix }}
|
|
||||||
{{ .Lastmod.Unix }}
|
|
||||||
{{ .Date.Unix }}
|
|
||||||
{{ $updated = i18n "updated" }}
|
|
||||||
{{ end }}
|
|
||||||
{{- $c := .Content -}}
|
{{- $c := .Content -}}
|
||||||
{{- $c := replace $c "<img" "<img width=\"600\"" -}}
|
{{- $c := replace $c "<img" "<img width=\"600\"" -}}
|
||||||
{{- if $when -}}
|
{{- if $when -}}
|
||||||
{{- $c = printf "<p>%s</p>%s" $when $c -}}
|
{{- $c = printf "<p>%s</p>%s" $when $c -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{- if ne $updated "" -}}
|
|
||||||
{{- $c = printf "<p>%s</p>%s" $updated $c -}}
|
|
||||||
{{- end -}}
|
|
||||||
|
|
||||||
{{- $img := index (.Resources.ByType "image") 0 -}}
|
{{- $img := index (.Resources.ByType "image") 0 -}}
|
||||||
{{- with $img -}}
|
{{- with $img -}}
|
||||||
{{- $img := .Resize "640x" -}}
|
{{- $img := .Resize "640x" -}}
|
||||||
{{- printf "<![CDATA[%s<img src=\"%s\" width=\"%d\" height=\"%d\"/>]]>" $c $img.Permalink $img.Width $img.Height | safeHTML -}}
|
{{- printf "<![CDATA[%s<img src=\"%s\" width=\"%d\" height=\"%d\"/>]]>" $c $img.Permalink $img.Width $img.Height | safeHTML -}}
|
||||||
{{ else }}
|
{{- else -}}
|
||||||
{{- printf "<![CDATA[%s]]>" $c | safeHTML -}}
|
{{- printf "<![CDATA[%s]]>" $c | safeHTML -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
</description>
|
</description>
|
||||||
|
|
Loading…
Reference in New Issue