small fixes

This commit is contained in:
teldra 2022-04-05 13:31:58 +02:00
parent ee1b4ac358
commit 7af5808400
3 changed files with 15 additions and 5 deletions

View File

@ -0,0 +1,14 @@
---
title: "wwww"
date: 2022-04-05T13:31:27+02:00
newscategories: []
eventcategories: []
when: ""
featured: false
covid: ""
contact: ""
price: ""
draft: false
tags: []
---
wwwwwww

View File

@ -60,12 +60,8 @@
{{ if gt .Lastmod.Unix .Date.Unix }}
{{ $updated = i18n "updated" }}
{{ end }}
{{- if $when -}}
{{- $when = $when -}}
{{- end -}}
{{- $c := .Content -}}
{{- $c := replace $c "<img" "<img width=\"600\"" -}}
{{- if $when -}}
{{- $c = printf "<p>%s</p>%s" $when $c -}}
{{- end -}}