small fixes

This commit is contained in:
teldra 2022-06-12 23:55:39 +02:00
parent 5b5c0d034c
commit 66124b6a2d
4 changed files with 9 additions and 5 deletions

View File

@ -15,7 +15,7 @@ forms:
name: "Titel"
required: true
placeholder: "Untitled Band \"Rocken in Häusern\"-Tour"
- title: summary
- title: description
input_type: text
name: "Beschreibung/Summary"
placeholder: "Wir feiern die 300jährige Tour und können das mit ca 30 Worten umreissen."

View File

@ -1,7 +1,7 @@
---
title: "Katzengejammer"
date: "2022-04-04T23:16:00+02:00"
summary: "sdadasdasdasd"
description: "sdadasdasdasd"
when: "Montag, 04.04.2022, 23.23 Uhr"
categories: ["Pressemitteilung"]
events: ["Konzert"]

View File

@ -20,6 +20,10 @@
{{ partial "snippets/article_metadata" $metas }}
{{- if .context.Description -}}
<p>{{ .context.Description }}</p>
{{ end }}
{{- if .context.Content -}}
<div class="article_content">{{- .context.Content -}}</div>
{{ else if .context.Resources.ByType "image" }}

View File

@ -95,7 +95,7 @@ function showInput(e) {
var form = document.querySelector('form[id="myform"]');
var title = form.elements['title'].value;
var summary = form.elements['summary'].value;
var description = form.elements['description'].value;
var content = form.elements['content'].value;
var when = form.elements['when'].value;
var covid = form.elements['covid'].value;
@ -194,8 +194,8 @@ function showInput(e) {
} else {
display.innerHTML += "date: " + datestring + "<br>";
}
if (summary) {
display.innerHTML += "summary: \"" + summary + "\"<br>";
if (description) {
display.innerHTML += "description: \"" + description + "\"<br>";
}
if (featured != '') {