many changes

This commit is contained in:
teldra 2022-04-28 17:55:16 +02:00
parent d748b4c0b6
commit d5ce174908
7 changed files with 26 additions and 16 deletions

View File

@ -4,3 +4,4 @@ events = 'events'
about = 'about'
featured = 'featured'
foundations = 'foundations'
recurrent = 'recurrent'

View File

@ -2,6 +2,5 @@
title: "Antifa-Cafe"
lastmod: 1998-10-12T14:00:00+02:00
when: "12.10.1998, 20 Uhr"
events: ["Regelmäßig"]
tags: ["Antifa","Informationsveranstaltungen","Antifachismus","Arbeitskreis Antifaschismus Magdeburg","Antifaschistische Aktion","Vortrag","Diskussionsveranstaltung"]
---

View File

@ -2,7 +2,6 @@
title: "Der Volxkuechenplan 2002"
lastmod: 2001-12-28T14:00:00+02:00
when: "Jeden Sonntag 30.12.2001 - 28.04.2002"
events: ["Regelmäßig"]
tags: ["Volxküche","Volksküche","Spicegirls","Fairbrutzelt","Flitze Feuerzahn","Cocina Fina","jeden Sonntag","Volxkuechenplan","Essen","Kochen"]
price: "free"
---

View File

@ -0,0 +1,4 @@
---
title: "Regelmässig"
layout: "article_list"
---

View File

@ -46,6 +46,11 @@ forms:
input_type: text
name: "Instagram"
placeholder: "foodsavingcelle"
- title: recurrent
group: events
input_type: checkbox
name: "Regelmässig"
help: "Ist es ein regelässiger Termin"
- title: events
group: events
input_type: mc
@ -69,11 +74,13 @@ forms:
input_type: checkbox
name: "Über uns"
help: "Falls der Artikel eine Gruppe des Hauses beschreibt"
- title: lastmod
- title: foundations
group: misc
input_type: date
name: "Zurueckdatieren"
help: "falls ein Artikel nachgetragen werden muss"
input_type: mc
name: "Stiftungen"
expanded: false
new: "Neue Stiftung"
help: "es muss ein Bild in assets/foundations mit dem gleichen Namen hinterlegt werden"
- title: tags
group: misc
input_type: mc
@ -82,13 +89,11 @@ forms:
new: "Neue Tags"
help: "hier gerne austoben, von der Anzahl her"
placeholder: "Untitled Band,Tour,Band die Begleitet"
- title: foundations
- title: lastmod
group: misc
input_type: mc
name: "Stiftungen"
expanded: false
new: "Neue Stiftung"
help: "es muss ein Bild in assets/foundations mit dem gleichen Namen hinterlegt werden"
input_type: date
name: "Zurueckdatieren"
help: "falls ein Artikel nachgetragen werden muss"
- title: results
input_type: results
- title: submit

View File

@ -1,7 +1,3 @@
{{ define "title" }}
<h1>{{ .Title }}</h1>
{{ end }}
{{ define "content" }}
{{- $all := where (where .Site.RegularPages "Permalink" "!=" .Permalink) "Type" "in" .Site.Params.searchSections }}
{{ $days := int (mul (mul (int .Site.Params.featured_expire) 7) -1) }}
@ -10,6 +6,7 @@
{{ $posts := $all | complement $featured }}
{{- $paginator := .Paginate $posts -}}
{{ if eq $paginator.PageNumber 1 }}
<h1>{{ .Title }}</h1>
{{ if ne .Content "" }}
{{ partial "snippets/content" (dict "content" .Content) }}
{{ end }}

View File

@ -51,6 +51,7 @@ function showInput(e) {
if (form.elements['newtags']) { var newtags = testor(form.elements['newtags'].value.split(',')); }
var featured = check_checkboxes('featured');
var about = check_checkboxes('about');
var recurrent = check_checkboxes('recurrent');
var foundations = check_checkboxes('foundations');
if (form.elements['newfoundations']) { var newfoundations = testor(form.elements['newfoundations'].value.split(',')); }
@ -140,6 +141,10 @@ function showInput(e) {
display.innerHTML += "about: true<br>";
}
if (recurrent != '') {
display.innerHTML += "recurrent: true<br>";
}
if (when) {
display.innerHTML += "when: \"" + when + "\"<br>";
}