forked from Bunteshaus/bunteshaus.de
many changes
This commit is contained in:
parent
d748b4c0b6
commit
d5ce174908
|
@ -4,3 +4,4 @@ events = 'events'
|
|||
about = 'about'
|
||||
featured = 'featured'
|
||||
foundations = 'foundations'
|
||||
recurrent = 'recurrent'
|
||||
|
|
|
@ -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"]
|
||||
---
|
||||
|
|
|
@ -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"
|
||||
---
|
||||
|
|
4
content/recurrent/_index.de.md
Normal file
4
content/recurrent/_index.de.md
Normal file
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
title: "Regelmässig"
|
||||
layout: "article_list"
|
||||
---
|
|
@ -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
|
||||
|
|
|
@ -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 }}
|
||||
|
|
|
@ -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>";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user