small fixes
|
@ -1 +0,0 @@
|
|||
../themes/buha/archetypes/default.md
|
13
config.toml
|
@ -8,6 +8,14 @@ paginate = 5
|
|||
description = "Buntes Haus e.V. - Soziokulturelles Zentrum in Celle - probably the friendliest place on earth"
|
||||
copyright = "bunteshaus.de"
|
||||
|
||||
[taxonomies]
|
||||
category = 'categories'
|
||||
tag = 'tags'
|
||||
news = 'news'
|
||||
events = 'events'
|
||||
about = 'about'
|
||||
featured = 'featured'
|
||||
|
||||
[params]
|
||||
# keywords for seo
|
||||
keywords = "buntes haus celle, buntes haus, bunteshaus, celle, buntes haus e.V., www.bunteshaus.de, celle, punk, reggae, ska, konzerte, partys, soziokultur, soziokulturelles zentrum celle, elektro, electroe, jugendzentrum, celle, dum n bass, konzert, musik, politik, kultur, alternativ, cd kaserne celle, cd kaserne, plenum, celle, antifa, antira, anti akw, anti atom celle, veranstaltungen, infoladen, proberaum celle, archiv für neue soziale bewegungen in celle, hartz 4 IV beratung celle, skaten, graffiti, sprayen, kunst, fahrradwerkstatt, deka dance celle, dekadance, Revista, probably the friendliest Place on Earth"
|
||||
|
@ -21,14 +29,15 @@ copyright = "bunteshaus.de"
|
|||
# do you want an imprint?
|
||||
imprint = true
|
||||
|
||||
mainSections = ['about','events','news']
|
||||
mainSections = ['about','news','events']
|
||||
mainMenu = ['about']
|
||||
|
||||
# data for your imprint and contact page
|
||||
[params.imprintdata]
|
||||
tel = "(+) 49 5141 907 927"
|
||||
mail = 'info@bunteshaus.de'
|
||||
street = "Hannoversche Straße 30 f"
|
||||
pobox = "Postfach 3166"
|
||||
pobox = "3166"
|
||||
city = "29221 Celle"
|
||||
country = "Niedersachsen / Deutschland"
|
||||
executive = "Ingileif Bech"
|
||||
|
|
|
@ -1,14 +0,0 @@
|
|||
---
|
||||
title: "Plenum"
|
||||
date: 2021-06-22T10:54:20+02:00
|
||||
description: "Plenum"
|
||||
categories: [ "Plenum", "recurrent" ]
|
||||
# Wenn dieser Inhalt nicht auf der Seite erscheinen soll, auf "true" stellen:
|
||||
hidden: "false"
|
||||
# Wenn dies ein Termin ist
|
||||
start: "2021-06-24T19:00:00+02:00"
|
||||
duration: "90"
|
||||
# Wenn dieser Inhalt widerkehrend ist:
|
||||
recurrent: "FREQ=WEEKLY;BYDAY=TH;INTERVAL=1"
|
||||
---
|
||||
Em li vir serleşker in
|
|
@ -1,3 +0,0 @@
|
|||
---
|
||||
title: "featured"
|
||||
---
|
|
@ -5,5 +5,5 @@ when: "13.4.1983"
|
|||
price: "free"
|
||||
covid: ""
|
||||
register: ""
|
||||
categories: ["Party"]
|
||||
eventcategories: ["Party"]
|
||||
---
|
Before Width: | Height: | Size: 118 KiB After Width: | Height: | Size: 118 KiB |
Before Width: | Height: | Size: 103 KiB After Width: | Height: | Size: 103 KiB |
|
@ -2,10 +2,11 @@
|
|||
title: "Trio Motion"
|
||||
date: "2021-10-20T17:00:00+02:00"
|
||||
when: "Samstag, 06.11.2021, 20:00Uhr"
|
||||
categories: ["Konzert"]
|
||||
events: ["Konzert"]
|
||||
tags: ["Trio Motion", "Jens Rathfelder", "Michael Haupt", "Jannik Stock"]
|
||||
price: "3€"
|
||||
register: "programm@bunteshaus.de"
|
||||
contact: "mail@example.org"
|
||||
covid: "3G"
|
||||
---
|
||||
Bewegung ist Zeit und Zeit ist Bewegung. Immer auf der Suche danach sich zu verlieren, versucht das Trio Motion die Zeit zu überlisten und sich in einen schwerelosen Raum zu spielen in dem sie weder sind noch nicht sind.
|
|
@ -0,0 +1,8 @@
|
|||
---
|
||||
title: "TanzBar"
|
||||
date: "2022-04-03T20:04:00+02:00"
|
||||
when: "Montag, 13.4.2022, 19Uhr"
|
||||
events: ["Party"]
|
||||
price: "free"
|
||||
---
|
||||
Leichter Jazz, Jazz, Jazz und dazu ein, zwei Drinks.
|
|
@ -0,0 +1,22 @@
|
|||
---
|
||||
title: "Schnorps"
|
||||
date: 2022-04-03T04:28:51+02:00
|
||||
categories: ["Pressemitteilung"]
|
||||
featured: true
|
||||
covid: "3g"
|
||||
contact: "schnbuuel@schnabel"
|
||||
price: "3€"
|
||||
draft: false
|
||||
tags: []
|
||||
---
|
||||
Lorem ipsum occaecat culpa exercitation et deserunt laborum nisi ut in ex laborum pariatur ea officia commodo sit incididunt aliquip excepteur.
|
||||
Exercitation velit eiusmod dolore dolor ea proident laboris culpa fugiat culpa anim cillum commodo ut amet cupidatat eu consectetur ut cillum occaecat sed incididunt in voluptate in amet amet incididunt consequat ex magna
|
||||
uis duis reprehenderit ex id anim duis ad ad mollit nisi dolor tempor ex voluptate non adipisicing voluptate nulla ut ut cillum sunt
|
||||
|
||||
in irure irure ut irure voluptate occaecat est ut dolor non dolor consectetur qui dolor dolor dolor id dolor sed enim et ad est excepteur cupidatat aliqua fugiat nulla nisi cillum dolore ad ullamco
|
||||
|
||||
mollit consectetur dolore dolore labore mollit in magna deserunt quis laboris cillum ut cillum occaecat non esse deserunt aute eiusmod ut tempor exercitation aliquip cillum nulla laborum sed aliquip quis dolore in sed adipisicing nulla exercitation excepteur dolore in veniam dolor do esse non consectetur non do aliquip elit voluptate in ex irure sed eiusmod dolor sunt proident esse proident eiusmod voluptate anim eiusmod aliqua fugiat ea commodo esse pariatur ad cillum ad consequat culpa dolore sit anim veniam ea anim non nostrud sed proident ea dolor sunt non deserunt adipisicing laborum dolore amet amet aute ex anim duis nisi est aliquip ad adipisicing exercitation qui voluptate non velit culpa reprehenderit dolore dolore quis esse veniam elit ut exercitation nulla velit dolor commodo mollit culpa minim dolore ea adipisicing pariatur in ullamco aliquip est ut commodo ad ut sed voluptate exercitation non sit proident amet sit aute veniam pariatur commodo ex.
|
||||
|
||||
Sed ad.
|
||||
|
||||
Officia eu do consectetur reprehenderit esse aliquip sed adipisicing consectetur adipisicing aliqua in ut eu id dolor labore occaecat id dolore laboris laborum sint dolore nulla consequat duis duis adipisicing elit enim aute laboris.
|
Before Width: | Height: | Size: 222 KiB After Width: | Height: | Size: 222 KiB |
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
title: "MorgenHäute"
|
||||
date: "2021-07-23T23:00:00+02:00"
|
||||
categories: ["Kabarett"]
|
||||
events: ["Kabarett"]
|
||||
when: "Samstag, 31.07.2021, 20:00Uhr"
|
||||
tags: ["Sunna Huygen"]
|
||||
price: "free"
|
|
@ -1,7 +1,8 @@
|
|||
---
|
||||
title: "Offenes Café"
|
||||
date: "2021-10-20T17:00:00+02:00"
|
||||
about: true
|
||||
when: "Mittwochs 16.00-19.00Uhr und Sonntags 14.00-17.00Uhr"
|
||||
categories: ["recurrent"]
|
||||
events: ["recurrent"]
|
||||
---
|
||||
Seit August gibt es im Bunten Haus das "Offene Café" immer Mittwochs 16.00 - 19.00 Uhr und Sonntags 14.00 - 17.00 Uhr: Wir haben leckeren Kaffee, Espresso, Tee und weitere Getränke und manchmal auch Kuchen. Wir freuen uns, wenn ihr vorbeischaut. Wir sehen uns dort!
|
Before Width: | Height: | Size: 286 KiB After Width: | Height: | Size: 286 KiB |
|
@ -1,6 +1,7 @@
|
|||
---
|
||||
title: "Finanzen"
|
||||
date: "1993-09-04T19:00:00+02:00"
|
||||
about: true
|
||||
---
|
||||
Immer eine Gratwanderung... Trotz unserer eigentlich konkurrenzlosen Eintritts- und Getränkepreisen gibt's leider kaum eine Veranstaltung, bei der nicht an der Kasse diskutiert wird. Wir sind es leid. Aber gäbe es einen Weg die Preise auf Dauer zu halten, oder sogar zu senken: Kommt einfach in Massen! Denn unser Prinzip ist, Veranstaltung nach Möglichkeit kostendeckend durchzuführen.
|
||||
Und Kosten haben wir immer. Feind Nr. 1 ist die "Gesellschaft für musikalische Aufführungs- und mechanische Vervielfältigungsrechte" (Gema), die sobald ein Ton erklingt die Hand aufhält. Bei Parties ist es nicht nur die Gema, es muss auch eine PA- und Lichtanlage geliehen werden. Und auch die Gagen für DJ's werden halt über den Eintritt finanziert. Und diese Kosten verteilen wir nach Möglichkeit auf die BesucherInnen. Doch schon der Alltag produziert Kosten, auch wenn die Räumlichkeiten von der Betriebsführungs - GmbH mietfrei zur Verfügung gestellt werden und selbst Mietnebenkosten bis zu einer monatlichen Obergrenze von 400€ frei sind. Aber: Wir zahlen Versicherung für den Fall, dass jemanden eine Box auf den Fuss fällt, zahlen die Abfallgebühr für den unvermeidlichen Müll, halten Internet und Telefon vor und müssen - auch wenn es manchmal nicht so scheint - permanent Reinigungsmittel und Toilettenpapier kaufen. Diese ganzen Kosten holen wir über den Getränke "Gewinn" rein. Unser wichtigster Partner in allen Ausbau und Anschaffungsfragen ist die Landesarbeitsgemeinschaft Soziokultur. Das Versammlungsstättenrecht nötigt selbst kleinen Zentren wie dem Bunten HAus zur Einhaltung einer Menge Vorschriften. Das fängt bei der Anzahl der Toiletten an, geht weiter über Feuerlöscher und Fluchtwegbeschilderung, und endet nicht bei der Lüftungsanlage, die jetzt in der Halle eingebaut wurde. Diese Investitionen wären ohne die Unterstützung der LAGS nicht möglich gewesen. Das Bunte Haus hatte zu allen diesen Investitionen einen Eigenanteil von 5 - 10% aufzubringen. Aus dem laufenden Betrieb wäre dies nicht zu erwirtschaften gewesen; allein zum Teil nicht unerhebliche Spenden machten es möglich, den jeweiligen Eigenanteil zu finanzieren. Wie immer, wenn es um Finanzen geht, hier der obligatorische SPENDENAUFRUF. Das Bunte Haus e.V. ist gemeinnützig. Jede Spende kann also bei der Steuererklärung geltend gemacht werden. Wer im doppelten Sinne für uns etwas über hat.
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 328 KiB After Width: | Height: | Size: 328 KiB |
Before Width: | Height: | Size: 358 KiB After Width: | Height: | Size: 358 KiB |
|
@ -1,8 +1,9 @@
|
|||
---
|
||||
title: "Food Saving"
|
||||
date: "2021-02-04T19:00:00+02:00"
|
||||
about: true
|
||||
when: "Jeden Mittwoch 18:30-19:00Uhr & Samstags 15:00-15:30Uhr"
|
||||
categories: ["recurrent"]
|
||||
events: ["recurrent"]
|
||||
contact: "foodsavingcelle@riseup.net"
|
||||
---
|
||||
Die kostenfreie Verteilung von gespendeten und geretteten Lebensmitteln geht auch nach der Wiedereröffnung der Tafel weiter. Wann? Immer Mittwochs von 18.30 bis 19 Uhr und Samstags von 15 bis 15.30 Uhr. Spenden? Mitmachen? Wer mitmachen oder uns unterstützen möchte, kann sich per Mail melden, sodass wir bei Bedarf nachfragen können.
|
|
@ -1,6 +1,7 @@
|
|||
---
|
||||
title: "Aus der Geschichte des Bunten Hauses"
|
||||
date: "1993-09-04T19:00:00+02:00"
|
||||
about: true
|
||||
---
|
||||
Als Zeugungsdatum des Bunten Hauses können wir im Nachhinein den 4. September 1993 angeben, als ein Dutzend junger Leute das seit Jahren leerstehende ehemalige Naafi-Gebäude am Neumarkt besetzten und an einem "Tag der offenen Tür" einluden, sich ein Bild vom Zustand des Hauses und seiner Eignung als Kulturzentrum zu machen. Doch wie bei Zeugungsakten üblich, war es ein vergleichsweise kurzes Vergnügen. Und doch hatte sich schon ein Name für das Kind ergeben: "Ein Buntes Haus in einer toten Stadt" stand auf den aus den Fenstern gehängten Transparenten wie auch: "Kultur für alle".
|
||||
|
Before Width: | Height: | Size: 7.3 KiB After Width: | Height: | Size: 7.3 KiB |
Before Width: | Height: | Size: 217 KiB After Width: | Height: | Size: 217 KiB |
Before Width: | Height: | Size: 561 KiB After Width: | Height: | Size: 561 KiB |
|
@ -1,6 +1,7 @@
|
|||
---
|
||||
title: "Homepage"
|
||||
date: "1993-09-04T19:00:00+02:00"
|
||||
about: true
|
||||
---
|
||||
Als Gruppe überlegen wir uns, welche Hardware nötig ist und welche Software wir benutzen um diese Homepage zu betreiben.
|
||||
Wir haben uns für [hugo](https://de.wikipedia.org/wiki/Hugo_(Software)) entschieden, da wir so die Sicherheitslücken von PHP und JOOMLA oder ähnliche CMS umgehen und liefern nur statische Webseiten aus.
|
Before Width: | Height: | Size: 593 KiB After Width: | Height: | Size: 593 KiB |
|
@ -2,7 +2,8 @@
|
|||
title: "Plenum"
|
||||
date: "1993-09-04T19:00:00+02:00"
|
||||
when: "jeden Monat am ersten und dritten Donnerstag, 19:00Uhr"
|
||||
categories: ["recurrent"]
|
||||
about: true
|
||||
events: ["recurrent"]
|
||||
tags: [ "Plenum" ]
|
||||
covid: "3g"
|
||||
price: "free"
|
|
@ -0,0 +1,13 @@
|
|||
---
|
||||
title: "Plenum"
|
||||
date: "1993-09-04T19:00:00+02:00"
|
||||
when: "jeden Monat am ersten und dritten Donnerstag, 19:00Uhr"
|
||||
about: true
|
||||
events: ["recurrent"]
|
||||
tags: [ "Plenum" ]
|
||||
covid: "3g"
|
||||
price: "free"
|
||||
---
|
||||
Das Plenum des Bunten Hauses findet jeden Donnerstag um 19.00 Uhr statt. Das Plenum ist offen für alle, die sich im Bunten Haus einbringen möchten.<!--more-->
|
||||
|
||||
An jedem ersten Donnerstag im Monat findet ein Delegierten-Plenum statt, an dem von jedem Arbeitsbereich und jeder im Bunten Haus aktiven Gruppe mindestens eine delegierte Person teilnimmt.
|
|
@ -0,0 +1,8 @@
|
|||
---
|
||||
title: "Plenum"
|
||||
date: 2021-06-22T10:54:20+02:00
|
||||
description: "Plenum"
|
||||
about: true
|
||||
events: [ "Plenum", "recurrent" ]
|
||||
---
|
||||
Em li vir serleşker in
|
|
@ -1,6 +1,7 @@
|
|||
---
|
||||
title: "Zeitungsprojekt Revista"
|
||||
date: "1993-09-04T19:00:00+02:00"
|
||||
about: true
|
||||
---
|
||||
Was ist Revista? Revista ist spanisch und heißt Zeitung, und genau das sind wir, eine Zeitung. Die revista ist ein relativ neues Projekt, die erste Ausgabe erschien um Oktober 1999.
|
||||
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
|
@ -1,6 +1,7 @@
|
|||
---
|
||||
title: "Selbstbestimmung / Selbstverwaltung"
|
||||
date: "1993-09-04T19:00:00+02:00"
|
||||
about: true
|
||||
---
|
||||
Wenn es im Bunten Haus so etwas wie einen utopischen Gehalt gibt, ist's schlicht die Selbstverwaltung. Dabei geht's nur am Rande um die Form - denn in diesem Sinne hat ja jeder Kleingartenverein seine Selbstverwaltungsorgane - es geht um Selbstverwaltung als sozialem Kern des Ganzen. Selbstverwaltung meint dabei das Offensein für das Mögliche. Und: Selbstverwaltung macht nur im Einklang mit Selbstbestimmung einen Sinn. Die Entscheidung darüber, was im Zentrum läuft oder nicht, liegt bei denen, die das Zentrum betreiben - aber: JedeR kann dazu gehören und jede Stimme sollte ein gleiches Gewicht haben.
|
||||
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
|
@ -1,6 +1,7 @@
|
|||
---
|
||||
title: "Soziokultur"
|
||||
date: "1993-09-04T19:00:00+02:00"
|
||||
about: true
|
||||
---
|
||||
In größeren Städten gehören soziokulturelle Zentren seit Ende der 1970er Jahre zur Lebensqualität. Der "Pavillon" in Hannover oder die "Lagerhalle" in Osnabrück sind heute überregional bekannt. In den 1990er Jahren hat sich Soziokultur vermehrt auch in der Provinz Räumen erobert.
|
||||
|
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 3.5 KiB |
|
@ -2,7 +2,8 @@
|
|||
title: "Umsonstladen"
|
||||
date: "1993-09-04T19:00:00+02:00"
|
||||
when: "Jeden Dienstag von 16.00 bis 18.00 Uhr"
|
||||
categories: ["recurrent"]
|
||||
about: true
|
||||
events: ["recurrent"]
|
||||
price: "free"
|
||||
covid: "3g"
|
||||
---
|
|
@ -1,6 +1,13 @@
|
|||
---
|
||||
title: ""
|
||||
date: {{ .Date }}
|
||||
categories: ""
|
||||
tags: ["",]
|
||||
newscategories: []
|
||||
eventcategories: []
|
||||
when: ""
|
||||
featured: false
|
||||
covid: ""
|
||||
contact: ""
|
||||
price: ""
|
||||
draft: false
|
||||
tags: []
|
||||
---
|
||||
|
|
|
@ -157,6 +157,16 @@ article h3 {
|
|||
flex-direction: column-reverse;
|
||||
}
|
||||
|
||||
#article_footer {
|
||||
margin-left: 1rem;
|
||||
margin-top: 2rem;
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
font-size: x-small;
|
||||
border-top: 1px solid var(--background);
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.articlebgcol1 {
|
||||
background-color: var(--background);
|
||||
}
|
||||
|
@ -170,6 +180,23 @@ article h3 {
|
|||
user-select: all;
|
||||
}
|
||||
|
||||
label,textarea {
|
||||
width: 100%;
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
fieldset{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
max-width: 58.5rem;
|
||||
border-color: var(--background-alt);
|
||||
}
|
||||
|
||||
input {
|
||||
border-color: var(--background-alt);
|
||||
background-color: var(--background);
|
||||
}
|
||||
|
||||
.underline {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
@ -253,6 +280,10 @@ article h3 {
|
|||
border-radius: 25px;
|
||||
}
|
||||
|
||||
#article_footer {
|
||||
margin-left: 2rem;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/* Medium devices (landscape tablets, 768px and up) */
|
||||
|
|
|
@ -1,17 +1,20 @@
|
|||
[home]
|
||||
other = "Startseite"
|
||||
|
||||
[executive]
|
||||
other = "Vorstand"
|
||||
|
||||
[and]
|
||||
other = "und"
|
||||
[news]
|
||||
other = "News"
|
||||
|
||||
[events]
|
||||
other = "Termine"
|
||||
other = "Events"
|
||||
|
||||
[event]
|
||||
other = "Termin"
|
||||
[contact]
|
||||
other = "Kontakt"
|
||||
|
||||
[pobox]
|
||||
other = "Posfach"
|
||||
|
||||
[phone]
|
||||
other = "Telefon"
|
||||
|
||||
[mail]
|
||||
other = "E-Mail"
|
||||
|
||||
[archive]
|
||||
other = "Archiv"
|
||||
|
@ -19,233 +22,17 @@ other = "Archiv"
|
|||
[imprint]
|
||||
other = "Impressum"
|
||||
|
||||
[recent_posts]
|
||||
other = "Aktuelle Beiträge"
|
||||
|
||||
[featured_posts]
|
||||
other = "Wichtig"
|
||||
|
||||
[no]
|
||||
other = "Nein"
|
||||
|
||||
[yes]
|
||||
other = "Ja"
|
||||
|
||||
[recurrent]
|
||||
other = "Feste Termine"
|
||||
|
||||
[contact]
|
||||
other = "Kontakt"
|
||||
|
||||
[dataprotection]
|
||||
other = "Datenschutz"
|
||||
|
||||
[mail]
|
||||
other = "Email"
|
||||
|
||||
[tel]
|
||||
other = "Telefon"
|
||||
|
||||
[news]
|
||||
other = "Neuigkeiten"
|
||||
|
||||
[from]
|
||||
other = "ab"
|
||||
|
||||
[at]
|
||||
other = "am"
|
||||
|
||||
[everyfemale]
|
||||
other = "jede"
|
||||
|
||||
[everymale]
|
||||
other = "jeden"
|
||||
|
||||
[everysubject]
|
||||
other = "jedes"
|
||||
|
||||
[since]
|
||||
other = "seit"
|
||||
|
||||
[days]
|
||||
other = "Tage"
|
||||
|
||||
[calendar]
|
||||
other = "Kalender"
|
||||
|
||||
[MO]
|
||||
other = "Montag"
|
||||
[TU]
|
||||
other = "Dienstag"
|
||||
[WE]
|
||||
other = "Mittwoch"
|
||||
[TH]
|
||||
other = "Donnerstag"
|
||||
[FR]
|
||||
other = "Freitag"
|
||||
[SA]
|
||||
other = "Samstag"
|
||||
[SU]
|
||||
other = "Sonntag"
|
||||
|
||||
[date]
|
||||
other = "Datum"
|
||||
|
||||
[time]
|
||||
other = "Zeit"
|
||||
|
||||
[categories]
|
||||
other = "Kategorien"
|
||||
|
||||
[tags]
|
||||
other = "Tags"
|
||||
|
||||
[repeat]
|
||||
other = "Wiederholen"
|
||||
|
||||
[end]
|
||||
other = "Ende"
|
||||
|
||||
[after]
|
||||
other = "nach"
|
||||
|
||||
[never]
|
||||
other = "niemals"
|
||||
|
||||
[duration]
|
||||
other = "Dauer"
|
||||
|
||||
[minutes]
|
||||
other = "Minuten"
|
||||
|
||||
[daily]
|
||||
other = "Täglich"
|
||||
|
||||
[DAILY]
|
||||
other = "Tag"
|
||||
|
||||
[weekly]
|
||||
other = "Wöchentlich"
|
||||
|
||||
[WEEKLY]
|
||||
other = "Woche"
|
||||
|
||||
[monthly]
|
||||
other = "Monatlich"
|
||||
|
||||
[MONTHLY]
|
||||
other = "Monat"
|
||||
|
||||
[yearly]
|
||||
other = "Jährlich"
|
||||
|
||||
[YEARLY]
|
||||
other = "Jahr"
|
||||
|
||||
[title]
|
||||
other = "Titel"
|
||||
|
||||
[description]
|
||||
other = "Beschreibung"
|
||||
|
||||
[location]
|
||||
other = "Ort"
|
||||
|
||||
[subject]
|
||||
other = "Inhalt"
|
||||
|
||||
[new]
|
||||
other = "Neu"
|
||||
|
||||
[generate]
|
||||
other = "Generieren"
|
||||
|
||||
[first]
|
||||
other = "Ersten"
|
||||
|
||||
[second]
|
||||
other = "Zweiten"
|
||||
|
||||
[third]
|
||||
other = "Dritten"
|
||||
|
||||
[fourth]
|
||||
other = "Vierten"
|
||||
|
||||
[last]
|
||||
other = "Letzten"
|
||||
|
||||
[Jan]
|
||||
other = "Januar"
|
||||
|
||||
[Feb]
|
||||
other = "Februar"
|
||||
|
||||
[Mar]
|
||||
other = "März"
|
||||
|
||||
[Apr]
|
||||
other = "April"
|
||||
|
||||
[May]
|
||||
other = "Mai"
|
||||
|
||||
[Jun]
|
||||
other = "Juni"
|
||||
|
||||
[Jul]
|
||||
other = "Juli"
|
||||
|
||||
[Aug]
|
||||
other = "August"
|
||||
|
||||
[Sep]
|
||||
other = "September"
|
||||
|
||||
[Oct]
|
||||
other = "Oktober"
|
||||
|
||||
[Nov]
|
||||
other = "November"
|
||||
|
||||
[Dec]
|
||||
other = "December"
|
||||
|
||||
[price]
|
||||
other = "Eintritt"
|
||||
|
||||
[nothing]
|
||||
other = "nichts"
|
||||
|
||||
[entry]
|
||||
other = "Eintritt"
|
||||
|
||||
[free]
|
||||
other = "Eintritt ist kostenlos."
|
||||
|
||||
[upcoming]
|
||||
other = "Anstehende Events"
|
||||
[about]
|
||||
other = "Über uns"
|
||||
|
||||
[readmore]
|
||||
other = "weiterlesen"
|
||||
|
||||
[about]
|
||||
other = "Über uns"
|
||||
[categories]
|
||||
other = "Kategorien"
|
||||
|
||||
[featured]
|
||||
other = "Wichtige Neuigkeiten"
|
||||
[category]
|
||||
other = "Kategorie"
|
||||
|
||||
[all]
|
||||
other = "Alle"
|
||||
|
||||
[ku]
|
||||
other = "Kurdî"
|
||||
|
||||
[en]
|
||||
other = "English"
|
||||
|
||||
[de]
|
||||
other = "Deutsch"
|
||||
|
||||
[translations]
|
||||
other = "Übersetzungen"
|
||||
[recurrent]
|
||||
other = "Regelmäßig"
|
|
@ -0,0 +1,257 @@
|
|||
[home]
|
||||
other = "Startseite"
|
||||
|
||||
[executive]
|
||||
other = "Vorstand"
|
||||
|
||||
[and]
|
||||
other = "und"
|
||||
|
||||
[events]
|
||||
other = "Termine"
|
||||
|
||||
[event]
|
||||
other = "Termin"
|
||||
|
||||
[archive]
|
||||
other = "Archiv"
|
||||
|
||||
[imprint]
|
||||
other = "Impressum"
|
||||
|
||||
[recent_posts]
|
||||
other = "Aktuelle Beiträge"
|
||||
|
||||
[featured_posts]
|
||||
other = "Wichtig"
|
||||
|
||||
[no]
|
||||
other = "Nein"
|
||||
|
||||
[yes]
|
||||
other = "Ja"
|
||||
|
||||
[recurrent]
|
||||
other = "Feste Termine"
|
||||
|
||||
[contact]
|
||||
other = "Kontakt"
|
||||
|
||||
[dataprotection]
|
||||
other = "Datenschutz"
|
||||
|
||||
[mail]
|
||||
other = "Email"
|
||||
|
||||
[tel]
|
||||
other = "Telefon"
|
||||
|
||||
[news]
|
||||
other = "Neuigkeiten"
|
||||
|
||||
[from]
|
||||
other = "ab"
|
||||
|
||||
[at]
|
||||
other = "am"
|
||||
|
||||
[everyfemale]
|
||||
other = "jede"
|
||||
|
||||
[everymale]
|
||||
other = "jeden"
|
||||
|
||||
[everysubject]
|
||||
other = "jedes"
|
||||
|
||||
[since]
|
||||
other = "seit"
|
||||
|
||||
[days]
|
||||
other = "Tage"
|
||||
|
||||
[calendar]
|
||||
other = "Kalender"
|
||||
|
||||
[MO]
|
||||
other = "Montag"
|
||||
[TU]
|
||||
other = "Dienstag"
|
||||
[WE]
|
||||
other = "Mittwoch"
|
||||
[TH]
|
||||
other = "Donnerstag"
|
||||
[FR]
|
||||
other = "Freitag"
|
||||
[SA]
|
||||
other = "Samstag"
|
||||
[SU]
|
||||
other = "Sonntag"
|
||||
|
||||
[date]
|
||||
other = "Datum"
|
||||
|
||||
[time]
|
||||
other = "Zeit"
|
||||
|
||||
[categories]
|
||||
other = "Kategorien"
|
||||
|
||||
[tags]
|
||||
other = "Tags"
|
||||
|
||||
[repeat]
|
||||
other = "Wiederholen"
|
||||
|
||||
[end]
|
||||
other = "Ende"
|
||||
|
||||
[after]
|
||||
other = "nach"
|
||||
|
||||
[never]
|
||||
other = "niemals"
|
||||
|
||||
[duration]
|
||||
other = "Dauer"
|
||||
|
||||
[minutes]
|
||||
other = "Minuten"
|
||||
|
||||
[daily]
|
||||
other = "Täglich"
|
||||
|
||||
[DAILY]
|
||||
other = "Tag"
|
||||
|
||||
[weekly]
|
||||
other = "Wöchentlich"
|
||||
|
||||
[WEEKLY]
|
||||
other = "Woche"
|
||||
|
||||
[monthly]
|
||||
other = "Monatlich"
|
||||
|
||||
[MONTHLY]
|
||||
other = "Monat"
|
||||
|
||||
[yearly]
|
||||
other = "Jährlich"
|
||||
|
||||
[YEARLY]
|
||||
other = "Jahr"
|
||||
|
||||
[title]
|
||||
other = "Titel"
|
||||
|
||||
[description]
|
||||
other = "Beschreibung"
|
||||
|
||||
[location]
|
||||
other = "Ort"
|
||||
|
||||
[subject]
|
||||
other = "Inhalt"
|
||||
|
||||
[new]
|
||||
other = "Neu"
|
||||
|
||||
[generate]
|
||||
other = "Generieren"
|
||||
|
||||
[first]
|
||||
other = "Ersten"
|
||||
|
||||
[second]
|
||||
other = "Zweiten"
|
||||
|
||||
[third]
|
||||
other = "Dritten"
|
||||
|
||||
[fourth]
|
||||
other = "Vierten"
|
||||
|
||||
[last]
|
||||
other = "Letzten"
|
||||
|
||||
[Jan]
|
||||
other = "Januar"
|
||||
|
||||
[Feb]
|
||||
other = "Februar"
|
||||
|
||||
[Mar]
|
||||
other = "März"
|
||||
|
||||
[Apr]
|
||||
other = "April"
|
||||
|
||||
[May]
|
||||
other = "Mai"
|
||||
|
||||
[Jun]
|
||||
other = "Juni"
|
||||
|
||||
[Jul]
|
||||
other = "Juli"
|
||||
|
||||
[Aug]
|
||||
other = "August"
|
||||
|
||||
[Sep]
|
||||
other = "September"
|
||||
|
||||
[Oct]
|
||||
other = "Oktober"
|
||||
|
||||
[Nov]
|
||||
other = "November"
|
||||
|
||||
[Dec]
|
||||
other = "December"
|
||||
|
||||
[price]
|
||||
other = "Eintritt"
|
||||
|
||||
[nothing]
|
||||
other = "nichts"
|
||||
|
||||
[entry]
|
||||
other = "Eintritt"
|
||||
|
||||
[free]
|
||||
other = "Eintritt ist kostenlos."
|
||||
|
||||
[upcoming]
|
||||
other = "Anstehende Events"
|
||||
|
||||
[readmore]
|
||||
other = "weiterlesen"
|
||||
|
||||
[about]
|
||||
other = "Über uns"
|
||||
|
||||
[featured]
|
||||
other = "Wichtige Neuigkeiten"
|
||||
|
||||
[all]
|
||||
other = "Alle"
|
||||
|
||||
[ku]
|
||||
other = "Kurdî"
|
||||
|
||||
[en]
|
||||
other = "English"
|
||||
|
||||
[de]
|
||||
other = "Deutsch"
|
||||
|
||||
[translations]
|
||||
other = "Übersetzungen"
|
||||
|
||||
[pinned]
|
||||
other = "Angepinnt"
|
||||
|
||||
[when]
|
||||
other = "Wann"
|
|
@ -19,6 +19,7 @@
|
|||
{{ block "sidebar" . -}}{{- end }}
|
||||
</aside>
|
||||
</div>
|
||||
{{ block "ab" . -}}{{- end }}
|
||||
<footer>
|
||||
{{- partial "structure/footer" . -}}
|
||||
</footer>
|
||||
|
|
|
@ -12,185 +12,7 @@
|
|||
{{- end -}}
|
||||
|
||||
{{- define "main" -}}
|
||||
{{ $s := .Site.Params }}
|
||||
|
||||
{{- $paginator := slice -}}
|
||||
{{- $posts := where .Site.RegularPages "Type" "in" $s.mainSections }}
|
||||
{{ $meta := "false" }}
|
||||
{{- if eq .Section "events" -}}
|
||||
{{- $paginator = .Paginate (where site.RegularPages.ByDate.Reverse ".Params.when" "ne" nil) -}}
|
||||
{{- else if eq .Section "news" }}
|
||||
{{- $paginator = .Paginate (where (where .Site.RegularPages.ByDate.Reverse "Permalink" "!=" .Permalink) "Type" "in" .Site.Params.mainSections) }}
|
||||
{{- else if eq .Section "featured" }}
|
||||
{{- $paginator = .Paginate (where $posts "Params.featured" true) -}}
|
||||
{{- else if eq .Section "recurrent" }}
|
||||
{{- $paginator = .Paginate (where .Site.RegularPages "Params.recurrent" true) -}}
|
||||
{{- else -}}
|
||||
{{- $paginator = .Paginate .RegularPagesRecursive.ByDate.Reverse -}}
|
||||
{{- end -}}
|
||||
{{ if eq $paginator.PageNumber 1 }}
|
||||
{{ if ne .Content "" }}
|
||||
<article>
|
||||
{{ .Content }}
|
||||
</article>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{- range first 5 $paginator.Pages -}}
|
||||
<article class="articlebgcol1 borderrad25"><a href="{{- .Permalink -}}">
|
||||
<div id="articletitle">
|
||||
<h2>{{- .Title -}}</h2>
|
||||
</div>
|
||||
<div id="articlecontent">
|
||||
<div id="articlemeta">
|
||||
{{ if and (ne .Params.when "") (ne .Params.when nil) }}
|
||||
<div style="margin-bottom: .4em;"><b>{{ .Params.when }}</b></div>
|
||||
{{ $meta = "true" }}
|
||||
{{ end }}
|
||||
{{ if and (ne .Params.price "") (ne .Params.price nil) }}
|
||||
{{ if eq .Params.price "free" }}
|
||||
<div style="margin-bottom: .4em;">Der Eintritt ist frei.</div>
|
||||
{{ $meta = "true" }}
|
||||
{{ else }}
|
||||
<div style="margin-bottom: .4em;">Eintritt: {{ .Params.price }}</div>
|
||||
{{ $meta = "true" }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
<div id="articleinner">
|
||||
<div id="articledata">
|
||||
{{- if .Resources.ByType "image" -}}
|
||||
{{- $pic := index (.Resources.ByType "image") 0 -}}
|
||||
{{ $thumb := "" }}
|
||||
{{ if eq .Content "" }}
|
||||
<div class="notext">
|
||||
{{- $thumb = $pic.Resize "1024x" }}
|
||||
{{ else }}
|
||||
<div class="text">
|
||||
{{- $thumb = $pic.Resize "2048x" }}
|
||||
{{ end }}
|
||||
|
||||
<img src="{{- $thumb.Permalink -}}"/>
|
||||
</div>
|
||||
{{- end }}
|
||||
<div id="articletext">
|
||||
{{- if .Params.description -}}
|
||||
{{- .Params.description -}}
|
||||
{{- else -}}
|
||||
{{- .Summary -}}
|
||||
{{- end }}
|
||||
{{ if .Truncated }}
|
||||
<div id="readmore">{{- i18n "readmore" -}}..</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</a></article>
|
||||
|
||||
{{- end }}
|
||||
<div id="pagination">
|
||||
<!-- Number of links either side of the current page. -->
|
||||
{{ $adjacent_links := 2 }}
|
||||
|
||||
<!-- $max_links = ($adjacent_links * 2) + 1 -->
|
||||
{{ $max_links := (add (mul $adjacent_links 2) 1) }}
|
||||
|
||||
<!-- $lower_limit = $adjacent_links + 1 -->
|
||||
{{ $lower_limit := (add $adjacent_links 1) }}
|
||||
|
||||
<!-- $upper_limit = $paginator.TotalPages - $adjacent_links -->
|
||||
{{ $upper_limit := (sub $paginator.TotalPages $adjacent_links) }}
|
||||
|
||||
<!-- If there's more than one page. -->
|
||||
{{ if gt $paginator.TotalPages 1 }}
|
||||
|
||||
|
||||
<!-- First page. -->
|
||||
{{ if ne $paginator.PageNumber 1 }}
|
||||
<a class="pagination__link pagination__link--first" href="{{ $paginator.First.URL }}">
|
||||
««
|
||||
</a>
|
||||
{{ end }}
|
||||
|
||||
<!-- Previous page. -->
|
||||
{{ if $paginator.HasPrev }}
|
||||
<a href="{{ $paginator.Prev.URL }}" class="pagination__link pagination__link--previous">
|
||||
«
|
||||
</a>
|
||||
{{ end }}
|
||||
|
||||
<!-- Page numbers. -->
|
||||
{{ range $paginator.Pagers }}
|
||||
|
||||
{{ $.Scratch.Set "page_number_flag" false }}
|
||||
|
||||
|
||||
<!-- Advanced page numbers. -->
|
||||
{{ if gt $paginator.TotalPages $max_links }}
|
||||
|
||||
|
||||
<!-- Lower limit pages. -->
|
||||
<!-- If the user is on a page which is in the lower limit. -->
|
||||
{{ if le $paginator.PageNumber $lower_limit }}
|
||||
|
||||
<!-- If the current loop page is less than max_links. -->
|
||||
{{ if le .PageNumber $max_links }}
|
||||
{{ $.Scratch.Set "page_number_flag" true }}
|
||||
{{ end }}
|
||||
|
||||
|
||||
<!-- Upper limit pages. -->
|
||||
<!-- If the user is on a page which is in the upper limit. -->
|
||||
{{ else if ge $paginator.PageNumber $upper_limit }}
|
||||
|
||||
<!-- If the current loop page is greater than total pages minus $max_links -->
|
||||
{{ if gt .PageNumber (sub $paginator.TotalPages $max_links) }}
|
||||
{{ $.Scratch.Set "page_number_flag" true }}
|
||||
{{ end }}
|
||||
|
||||
|
||||
<!-- Middle pages. -->
|
||||
{{ else }}
|
||||
|
||||
{{ if and ( ge .PageNumber (sub $paginator.PageNumber $adjacent_links) ) ( le .PageNumber (add $paginator.PageNumber $adjacent_links) ) }}
|
||||
{{ $.Scratch.Set "page_number_flag" true }}
|
||||
{{ end }}
|
||||
|
||||
{{ end }}
|
||||
|
||||
|
||||
<!-- Simple page numbers. -->
|
||||
{{ else }}
|
||||
|
||||
{{ $.Scratch.Set "page_number_flag" true }}
|
||||
|
||||
{{ end }}
|
||||
|
||||
<!-- Output page numbers. -->
|
||||
{{ if eq ($.Scratch.Get "page_number_flag") true }}
|
||||
<a href="{{ .URL }}" class="pagination__link">
|
||||
{{ .PageNumber }}
|
||||
</a>
|
||||
{{ end }}
|
||||
|
||||
{{ end }}
|
||||
|
||||
<!-- Next page. -->
|
||||
{{ if $paginator.HasNext }}
|
||||
<a href="{{ $paginator.Next.URL }}" class="pagination__link pagination__link--next">
|
||||
»
|
||||
</a>
|
||||
{{ end }}
|
||||
|
||||
<!-- Last page. -->
|
||||
{{ if ne $paginator.PageNumber $paginator.TotalPages }}
|
||||
<a class="pagination__link pagination__link--last" href="{{ $paginator.Last.URL }}">
|
||||
»»
|
||||
</a>
|
||||
{{ end }}
|
||||
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ partial "list/misc.html" . }}
|
||||
{{- end -}}
|
||||
|
||||
{{ define "sidebar" }}
|
||||
|
|
|
@ -10,3 +10,28 @@
|
|||
{{ partial "single/article" . }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ define "ab" }}
|
||||
<div id="article_footer">
|
||||
{{ if .IsTranslated }}
|
||||
<div style="flex-grow: 0; flex-direction: column; margin-right: 1rem;">
|
||||
<b>{{ "Translations" }}</b>
|
||||
{{ range .Translations }}
|
||||
<li style="list-style: none; text-decoration: none; font-size: x-small; color: var(--text-muted);">
|
||||
<a href="{{ .Permalink }}" class="underline">{{ T .Lang }}</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
<div style="flex-grow: 1; flex-direction: column;">
|
||||
<b>Verfasst am</b><br>
|
||||
{{ .Date | time.Format ":date_full" }}
|
||||
</div>
|
||||
{{ if ne .Date .Lastmod }}
|
||||
<div style="flex-grow: 1; flex-direction: column;">
|
||||
<b>zuletzt geändert</b><br>
|
||||
{{ .Lastmod | time.Format ":date_full" }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
|
@ -0,0 +1,45 @@
|
|||
{{- define "title" -}}
|
||||
{{ $name := .Name | lower }}
|
||||
{{ if ne ($name | i18n) "" }}
|
||||
{{ $name = $name | i18n }}
|
||||
{{ else }}
|
||||
{{ if ne .Section "events" }}
|
||||
{{ $name = $name | singularize }}
|
||||
{{ end }}
|
||||
{{ $name = $name | humanize }}
|
||||
{{ end }}
|
||||
{{ $name }}
|
||||
{{- end -}}
|
||||
|
||||
{{- define "main" -}}
|
||||
{{ $title := lower .Title }}
|
||||
{{ $s := .Site.Params }}
|
||||
{{- $paginator := slice -}}
|
||||
{{ $what := printf ".Params.%s" $title }}
|
||||
{{ if or (eq $title "about") (eq $title "featured") }}
|
||||
{{- $paginator = .Paginate (where (where .Site.RegularPages "Type" "in" site.Params.mainSections) $what "eq" true) -}}
|
||||
{{ else if eq $title "events" }}
|
||||
{{- $paginator = .Paginate (where (where .Site.RegularPages "Type" "in" site.Params.mainSections) ".Params.when" "ne" nil) -}}
|
||||
{{ else if eq $title "news" }}
|
||||
{{- $paginator = .Paginate .Site.RegularPages -}}
|
||||
{{ else }}
|
||||
{{- $paginator = .Paginate .Data.Pages -}}
|
||||
{{ end }}
|
||||
{{ if eq $paginator.PageNumber 1 }}
|
||||
{{ if ne .Content "" }}
|
||||
<article>
|
||||
{{ .Content }}
|
||||
</article>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{- range first 5 $paginator.Pages -}}
|
||||
{{ partial "structure/list_article" . }}
|
||||
{{- end }}
|
||||
<div id="pagination_outer" style="display: flex; justify-content: flex-end;">
|
||||
{{ partial "structure/paginator" (dict "paginator" $paginator) }}
|
||||
</div>
|
||||
{{- end -}}
|
||||
|
||||
{{ define "sidebar" }}
|
||||
{{- partial "structure/empty" . }}
|
||||
{{ end }}
|
|
@ -18,110 +18,17 @@
|
|||
{{ .Content }}
|
||||
</article>
|
||||
{{ end }}
|
||||
{{ $meta := false }}
|
||||
{{ range first 3 (where (where .Site.RegularPages "Type" "in" site.Params.mainSections) ".Params.featured" "=" true) }}
|
||||
{{ $article_age := sub now.Unix (int .Date.Unix) }}
|
||||
{{ if lt $article_age "1209600" }}
|
||||
<article class="articlebgcol1 borderrad25"><a href="{{- .Permalink -}}">
|
||||
<div id="articletitle">
|
||||
<h3>{{- .Title -}}</h3>featured
|
||||
</div>
|
||||
<div id="articlecontent">
|
||||
<div id="articlemeta">
|
||||
{{ if and (ne .Params.when "") (ne .Params.when nil) }}
|
||||
<div style="margin-bottom: .4em;">{{ .Params.when }}</div>
|
||||
{{ end }}
|
||||
{{ if and (ne .Params.price "") (ne .Params.price nil) }}
|
||||
{{ if eq .Params.price "free" }}
|
||||
<div style="margin-bottom: .4em;">Der Eintritt ist frei.</div>
|
||||
{{ else }}
|
||||
<div style="margin-bottom: .4em;">Eintritt: {{ .Params.price }}</div>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
<div id="articleinner">
|
||||
<div id="articledata">
|
||||
{{- if .Resources.ByType "image" -}}
|
||||
{{- $pic := index (.Resources.ByType "image") 0 -}}
|
||||
{{ $thumb := "" }}
|
||||
{{ if eq .Content "" }}
|
||||
<div class="notext">
|
||||
{{- $thumb = $pic.Resize "1024x" }}
|
||||
{{ else }}
|
||||
<div class="text">
|
||||
{{- $thumb = $pic.Resize "2048x" }}
|
||||
{{ end }}
|
||||
|
||||
<img src="{{- $thumb.Permalink -}}"/>
|
||||
</div>
|
||||
{{- end }}
|
||||
<div id="articletext">
|
||||
{{- if .Params.description -}}
|
||||
{{- .Params.description -}}
|
||||
{{- else -}}
|
||||
{{- .Summary -}}
|
||||
{{- end }}
|
||||
{{ if .Truncated }}
|
||||
<div id="readmore">{{- i18n "readmore" -}}..</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</a></article>
|
||||
{{ partial "structure/list_article.html" . }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{- range first 5 $paginator.Pages -}}
|
||||
{{ $article_age := sub now.Unix (int .Date.Unix) }}
|
||||
{{ if or (ne .Params.featured true) (ge $article_age "1209600") }}
|
||||
<article class="articlebgcol1 borderrad25"><a href="{{- .Permalink -}}">
|
||||
<div id="articletitle">
|
||||
<h3>{{- .Title -}}</h3>
|
||||
</div>
|
||||
<div id="articlecontent">
|
||||
<div id="articlemeta">
|
||||
{{ if and (ne .Params.when "") (ne .Params.when nil) }}
|
||||
<div style="margin-bottom: .4em;">{{ .Params.when }}</div>
|
||||
{{ end }}
|
||||
{{ if and (ne .Params.price "") (ne .Params.price nil) }}
|
||||
{{ if eq .Params.price "free" }}
|
||||
<div style="margin-bottom: .4em;">Der Eintritt ist frei.</div>
|
||||
{{ else }}
|
||||
<div style="margin-bottom: .4em;">Eintritt: {{ .Params.price }}</div>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
<div id="articleinner">
|
||||
<div id="articledata">
|
||||
{{- if .Resources.ByType "image" -}}
|
||||
{{- $pic := index (.Resources.ByType "image") 0 -}}
|
||||
{{ $thumb := "" }}
|
||||
{{ if eq .Content "" }}
|
||||
<div class="notext">
|
||||
{{- $thumb = $pic.Resize "1024x" }}
|
||||
{{ else }}
|
||||
<div class="text">
|
||||
{{- $thumb = $pic.Resize "2048x" }}
|
||||
{{ end }}
|
||||
|
||||
<img src="{{- $thumb.Permalink -}}"/>
|
||||
</div>
|
||||
{{- end }}
|
||||
<div id="articletext">
|
||||
{{- if .Params.description -}}
|
||||
{{- .Params.description -}}
|
||||
{{- else -}}
|
||||
{{- .Summary -}}
|
||||
{{- end }}
|
||||
{{ if .Truncated }}
|
||||
<div id="readmore">{{- i18n "readmore" -}}..</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</a></article>
|
||||
{{ partial "structure/list_article.html" . }}
|
||||
{{ end }}
|
||||
{{- end }}
|
||||
<div id="pagination">
|
||||
|
@ -233,4 +140,5 @@
|
|||
|
||||
{{ define "sidebar" }}
|
||||
{{- partial "structure/sidebar" . }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{{ site.Title }}<br>
|
||||
{{ site.Params.imprintdata.street }}<br>
|
||||
{{ site.Params.imprintdata.pobox }}<br>
|
||||
{{ if i18n "pobox" }}{{ i18n "pobox" }}{{ else }}{{ "pobox" }}{{ end }} {{ site.Params.imprintdata.pobox }}<br>
|
||||
{{ site.Params.imprintdata.city }}<br>
|
||||
<br>
|
||||
Telefon: {{ site.Params.imprintdata.tel }}<br>
|
||||
<p>E-Mail: {{ site.Params.imprintdata.mail | markdownify }}</p>
|
||||
{{ if i18n "phone" }}{{ i18n "phone" }}{{ else }}{{ "phone" }}{{ end }}: {{ site.Params.imprintdata.tel }}<br>
|
||||
<p>{{ if i18n "mail" }}{{ i18n "mail" }}{{ else }}{{ "mail" }}{{ end }}: {{ site.Params.imprintdata.mail | markdownify }}</p>
|
|
@ -0,0 +1,15 @@
|
|||
{{ $s := .Site.Params }}
|
||||
{{- $paginator := slice -}}
|
||||
{{- $paginator = .Paginate (where site.RegularPages.ByDate.Reverse ".Params.when" "ne" nil) -}}
|
||||
{{ if eq $paginator.PageNumber 1 }}
|
||||
{{ if ne .Content "" }}
|
||||
<article>
|
||||
{{ .Content }}
|
||||
</article>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{- range first 5 $paginator.Pages -}}
|
||||
{{ partial "structure/list_article.html" . }}
|
||||
{{- end }}
|
||||
{{ partial "structure/paginator" "paginator" $paginator }}
|
||||
|
|
@ -0,0 +1,118 @@
|
|||
{{ $s := .Site.Params }}
|
||||
{{- $paginator := slice -}}
|
||||
{{- $posts := where .Site.RegularPages "Type" "in" $s.mainSections }}
|
||||
{{- $paginator = .Paginate (where $posts "Params.featured" true) -}}
|
||||
{{ if eq $paginator.PageNumber 1 }}
|
||||
{{ if ne .Content "" }}
|
||||
<article>
|
||||
{{ .Content }}
|
||||
</article>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{- range first 5 $paginator.Pages -}}
|
||||
{{ partial "structure/list_article.html" . }}
|
||||
|
||||
{{- end }}
|
||||
<div id="pagination">
|
||||
<!-- Number of links either side of the current page. -->
|
||||
{{ $adjacent_links := 2 }}
|
||||
|
||||
<!-- $max_links = ($adjacent_links * 2) + 1 -->
|
||||
{{ $max_links := (add (mul $adjacent_links 2) 1) }}
|
||||
|
||||
<!-- $lower_limit = $adjacent_links + 1 -->
|
||||
{{ $lower_limit := (add $adjacent_links 1) }}
|
||||
|
||||
<!-- $upper_limit = $paginator.TotalPages - $adjacent_links -->
|
||||
{{ $upper_limit := (sub $paginator.TotalPages $adjacent_links) }}
|
||||
|
||||
<!-- If there's more than one page. -->
|
||||
{{ if gt $paginator.TotalPages 1 }}
|
||||
|
||||
|
||||
<!-- First page. -->
|
||||
{{ if ne $paginator.PageNumber 1 }}
|
||||
<a class="pagination__link pagination__link--first" href="{{ $paginator.First.URL }}">
|
||||
««
|
||||
</a>
|
||||
{{ end }}
|
||||
|
||||
<!-- Previous page. -->
|
||||
{{ if $paginator.HasPrev }}
|
||||
<a href="{{ $paginator.Prev.URL }}" class="pagination__link pagination__link--previous">
|
||||
«
|
||||
</a>
|
||||
{{ end }}
|
||||
|
||||
<!-- Page numbers. -->
|
||||
{{ range $paginator.Pagers }}
|
||||
|
||||
{{ $.Scratch.Set "page_number_flag" false }}
|
||||
|
||||
|
||||
<!-- Advanced page numbers. -->
|
||||
{{ if gt $paginator.TotalPages $max_links }}
|
||||
|
||||
|
||||
<!-- Lower limit pages. -->
|
||||
<!-- If the user is on a page which is in the lower limit. -->
|
||||
{{ if le $paginator.PageNumber $lower_limit }}
|
||||
|
||||
<!-- If the current loop page is less than max_links. -->
|
||||
{{ if le .PageNumber $max_links }}
|
||||
{{ $.Scratch.Set "page_number_flag" true }}
|
||||
{{ end }}
|
||||
|
||||
|
||||
<!-- Upper limit pages. -->
|
||||
<!-- If the user is on a page which is in the upper limit. -->
|
||||
{{ else if ge $paginator.PageNumber $upper_limit }}
|
||||
|
||||
<!-- If the current loop page is greater than total pages minus $max_links -->
|
||||
{{ if gt .PageNumber (sub $paginator.TotalPages $max_links) }}
|
||||
{{ $.Scratch.Set "page_number_flag" true }}
|
||||
{{ end }}
|
||||
|
||||
|
||||
<!-- Middle pages. -->
|
||||
{{ else }}
|
||||
|
||||
{{ if and ( ge .PageNumber (sub $paginator.PageNumber $adjacent_links) ) ( le .PageNumber (add $paginator.PageNumber $adjacent_links) ) }}
|
||||
{{ $.Scratch.Set "page_number_flag" true }}
|
||||
{{ end }}
|
||||
|
||||
{{ end }}
|
||||
|
||||
|
||||
<!-- Simple page numbers. -->
|
||||
{{ else }}
|
||||
|
||||
{{ $.Scratch.Set "page_number_flag" true }}
|
||||
|
||||
{{ end }}
|
||||
|
||||
<!-- Output page numbers. -->
|
||||
{{ if eq ($.Scratch.Get "page_number_flag") true }}
|
||||
<a href="{{ .URL }}" class="pagination__link">
|
||||
{{ .PageNumber }}
|
||||
</a>
|
||||
{{ end }}
|
||||
|
||||
{{ end }}
|
||||
|
||||
<!-- Next page. -->
|
||||
{{ if $paginator.HasNext }}
|
||||
<a href="{{ $paginator.Next.URL }}" class="pagination__link pagination__link--next">
|
||||
»
|
||||
</a>
|
||||
{{ end }}
|
||||
|
||||
<!-- Last page. -->
|
||||
{{ if ne $paginator.PageNumber $paginator.TotalPages }}
|
||||
<a class="pagination__link pagination__link--last" href="{{ $paginator.Last.URL }}">
|
||||
»»
|
||||
</a>
|
||||
{{ end }}
|
||||
|
||||
{{ end }}
|
||||
</div>
|
|
@ -0,0 +1,18 @@
|
|||
{{ $s := .Site.Params }}
|
||||
{{- $paginator := slice -}}
|
||||
{{- $paginator = .Paginate .RegularPagesRecursive.ByDate.Reverse -}}
|
||||
{{ if eq $paginator.PageNumber 1 }}
|
||||
{{ if ne .Content "" }}
|
||||
<article>
|
||||
{{ .Content }}
|
||||
</article>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{- range first 5 $paginator.Pages -}}
|
||||
{{ partial "structure/list_article.html" . }}
|
||||
|
||||
{{- end }}
|
||||
|
||||
<div id="pagination_outer" style="display: flex; justify-content: flex-end;">
|
||||
{{ partial "structure/paginator" (dict "paginator" $paginator) }}
|
||||
</div>
|
|
@ -0,0 +1,117 @@
|
|||
{{ $s := .Site.Params }}
|
||||
{{- $paginator := slice -}}
|
||||
{{- $paginator = .Paginate (where (where .Site.RegularPages.ByDate.Reverse "Permalink" "!=" .Permalink) "Type" "in" .Site.Params.mainSections) }}
|
||||
{{ if eq $paginator.PageNumber 1 }}
|
||||
{{ if ne .Content "" }}
|
||||
<article>
|
||||
{{ .Content }}
|
||||
</article>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{- range first 5 $paginator.Pages -}}
|
||||
{{ partial "structure/list_article.html" . }}
|
||||
|
||||
{{- end }}
|
||||
<div id="pagination">
|
||||
<!-- Number of links either side of the current page. -->
|
||||
{{ $adjacent_links := 2 }}
|
||||
|
||||
<!-- $max_links = ($adjacent_links * 2) + 1 -->
|
||||
{{ $max_links := (add (mul $adjacent_links 2) 1) }}
|
||||
|
||||
<!-- $lower_limit = $adjacent_links + 1 -->
|
||||
{{ $lower_limit := (add $adjacent_links 1) }}
|
||||
|
||||
<!-- $upper_limit = $paginator.TotalPages - $adjacent_links -->
|
||||
{{ $upper_limit := (sub $paginator.TotalPages $adjacent_links) }}
|
||||
|
||||
<!-- If there's more than one page. -->
|
||||
{{ if gt $paginator.TotalPages 1 }}
|
||||
|
||||
|
||||
<!-- First page. -->
|
||||
{{ if ne $paginator.PageNumber 1 }}
|
||||
<a class="pagination__link pagination__link--first" href="{{ $paginator.First.URL }}">
|
||||
««
|
||||
</a>
|
||||
{{ end }}
|
||||
|
||||
<!-- Previous page. -->
|
||||
{{ if $paginator.HasPrev }}
|
||||
<a href="{{ $paginator.Prev.URL }}" class="pagination__link pagination__link--previous">
|
||||
«
|
||||
</a>
|
||||
{{ end }}
|
||||
|
||||
<!-- Page numbers. -->
|
||||
{{ range $paginator.Pagers }}
|
||||
|
||||
{{ $.Scratch.Set "page_number_flag" false }}
|
||||
|
||||
|
||||
<!-- Advanced page numbers. -->
|
||||
{{ if gt $paginator.TotalPages $max_links }}
|
||||
|
||||
|
||||
<!-- Lower limit pages. -->
|
||||
<!-- If the user is on a page which is in the lower limit. -->
|
||||
{{ if le $paginator.PageNumber $lower_limit }}
|
||||
|
||||
<!-- If the current loop page is less than max_links. -->
|
||||
{{ if le .PageNumber $max_links }}
|
||||
{{ $.Scratch.Set "page_number_flag" true }}
|
||||
{{ end }}
|
||||
|
||||
|
||||
<!-- Upper limit pages. -->
|
||||
<!-- If the user is on a page which is in the upper limit. -->
|
||||
{{ else if ge $paginator.PageNumber $upper_limit }}
|
||||
|
||||
<!-- If the current loop page is greater than total pages minus $max_links -->
|
||||
{{ if gt .PageNumber (sub $paginator.TotalPages $max_links) }}
|
||||
{{ $.Scratch.Set "page_number_flag" true }}
|
||||
{{ end }}
|
||||
|
||||
|
||||
<!-- Middle pages. -->
|
||||
{{ else }}
|
||||
|
||||
{{ if and ( ge .PageNumber (sub $paginator.PageNumber $adjacent_links) ) ( le .PageNumber (add $paginator.PageNumber $adjacent_links) ) }}
|
||||
{{ $.Scratch.Set "page_number_flag" true }}
|
||||
{{ end }}
|
||||
|
||||
{{ end }}
|
||||
|
||||
|
||||
<!-- Simple page numbers. -->
|
||||
{{ else }}
|
||||
|
||||
{{ $.Scratch.Set "page_number_flag" true }}
|
||||
|
||||
{{ end }}
|
||||
|
||||
<!-- Output page numbers. -->
|
||||
{{ if eq ($.Scratch.Get "page_number_flag") true }}
|
||||
<a href="{{ .URL }}" class="pagination__link">
|
||||
{{ .PageNumber }}
|
||||
</a>
|
||||
{{ end }}
|
||||
|
||||
{{ end }}
|
||||
|
||||
<!-- Next page. -->
|
||||
{{ if $paginator.HasNext }}
|
||||
<a href="{{ $paginator.Next.URL }}" class="pagination__link pagination__link--next">
|
||||
»
|
||||
</a>
|
||||
{{ end }}
|
||||
|
||||
<!-- Last page. -->
|
||||
{{ if ne $paginator.PageNumber $paginator.TotalPages }}
|
||||
<a class="pagination__link pagination__link--last" href="{{ $paginator.Last.URL }}">
|
||||
»»
|
||||
</a>
|
||||
{{ end }}
|
||||
|
||||
{{ end }}
|
||||
</div>
|
|
@ -0,0 +1,117 @@
|
|||
{{ $s := .Site.Params }}
|
||||
{{- $paginator := slice -}}
|
||||
{{- $paginator = .Paginate (where .Site.RegularPages "Params.recurrent" true) -}}
|
||||
{{ if eq $paginator.PageNumber 1 }}
|
||||
{{ if ne .Content "" }}
|
||||
<article>
|
||||
{{ .Content }}
|
||||
</article>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{- range first 5 $paginator.Pages -}}
|
||||
{{ partial "structure/list_article.html" . }}
|
||||
|
||||
{{- end }}
|
||||
<div id="pagination">
|
||||
<!-- Number of links either side of the current page. -->
|
||||
{{ $adjacent_links := 2 }}
|
||||
|
||||
<!-- $max_links = ($adjacent_links * 2) + 1 -->
|
||||
{{ $max_links := (add (mul $adjacent_links 2) 1) }}
|
||||
|
||||
<!-- $lower_limit = $adjacent_links + 1 -->
|
||||
{{ $lower_limit := (add $adjacent_links 1) }}
|
||||
|
||||
<!-- $upper_limit = $paginator.TotalPages - $adjacent_links -->
|
||||
{{ $upper_limit := (sub $paginator.TotalPages $adjacent_links) }}
|
||||
|
||||
<!-- If there's more than one page. -->
|
||||
{{ if gt $paginator.TotalPages 1 }}
|
||||
|
||||
|
||||
<!-- First page. -->
|
||||
{{ if ne $paginator.PageNumber 1 }}
|
||||
<a class="pagination__link pagination__link--first" href="{{ $paginator.First.URL }}">
|
||||
««
|
||||
</a>
|
||||
{{ end }}
|
||||
|
||||
<!-- Previous page. -->
|
||||
{{ if $paginator.HasPrev }}
|
||||
<a href="{{ $paginator.Prev.URL }}" class="pagination__link pagination__link--previous">
|
||||
«
|
||||
</a>
|
||||
{{ end }}
|
||||
|
||||
<!-- Page numbers. -->
|
||||
{{ range $paginator.Pagers }}
|
||||
|
||||
{{ $.Scratch.Set "page_number_flag" false }}
|
||||
|
||||
|
||||
<!-- Advanced page numbers. -->
|
||||
{{ if gt $paginator.TotalPages $max_links }}
|
||||
|
||||
|
||||
<!-- Lower limit pages. -->
|
||||
<!-- If the user is on a page which is in the lower limit. -->
|
||||
{{ if le $paginator.PageNumber $lower_limit }}
|
||||
|
||||
<!-- If the current loop page is less than max_links. -->
|
||||
{{ if le .PageNumber $max_links }}
|
||||
{{ $.Scratch.Set "page_number_flag" true }}
|
||||
{{ end }}
|
||||
|
||||
|
||||
<!-- Upper limit pages. -->
|
||||
<!-- If the user is on a page which is in the upper limit. -->
|
||||
{{ else if ge $paginator.PageNumber $upper_limit }}
|
||||
|
||||
<!-- If the current loop page is greater than total pages minus $max_links -->
|
||||
{{ if gt .PageNumber (sub $paginator.TotalPages $max_links) }}
|
||||
{{ $.Scratch.Set "page_number_flag" true }}
|
||||
{{ end }}
|
||||
|
||||
|
||||
<!-- Middle pages. -->
|
||||
{{ else }}
|
||||
|
||||
{{ if and ( ge .PageNumber (sub $paginator.PageNumber $adjacent_links) ) ( le .PageNumber (add $paginator.PageNumber $adjacent_links) ) }}
|
||||
{{ $.Scratch.Set "page_number_flag" true }}
|
||||
{{ end }}
|
||||
|
||||
{{ end }}
|
||||
|
||||
|
||||
<!-- Simple page numbers. -->
|
||||
{{ else }}
|
||||
|
||||
{{ $.Scratch.Set "page_number_flag" true }}
|
||||
|
||||
{{ end }}
|
||||
|
||||
<!-- Output page numbers. -->
|
||||
{{ if eq ($.Scratch.Get "page_number_flag") true }}
|
||||
<a href="{{ .URL }}" class="pagination__link">
|
||||
{{ .PageNumber }}
|
||||
</a>
|
||||
{{ end }}
|
||||
|
||||
{{ end }}
|
||||
|
||||
<!-- Next page. -->
|
||||
{{ if $paginator.HasNext }}
|
||||
<a href="{{ $paginator.Next.URL }}" class="pagination__link pagination__link--next">
|
||||
»
|
||||
</a>
|
||||
{{ end }}
|
||||
|
||||
<!-- Last page. -->
|
||||
{{ if ne $paginator.PageNumber $paginator.TotalPages }}
|
||||
<a class="pagination__link pagination__link--last" href="{{ $paginator.Last.URL }}">
|
||||
»»
|
||||
</a>
|
||||
{{ end }}
|
||||
|
||||
{{ end }}
|
||||
</div>
|
|
@ -20,16 +20,25 @@
|
|||
<noscript><p><b>Bitte aktiviere Javascript, sonst funktioniert der Generator nicht.</b></p></noscript>
|
||||
</p>
|
||||
<br>
|
||||
<form id="myform" style="min-width: 55rem; max-width: 100vw; display: flex; flex-grow: 1; flex-direction: column;">
|
||||
{{ partial "tools/title" }}
|
||||
{{ partial "tools/content" }}
|
||||
{{ partial "tools/featured" }}
|
||||
{{ partial "tools/event" }}
|
||||
{{ partial "tools/price" }}
|
||||
{{ partial "tools/covid" }}
|
||||
{{ partial "tools/registermail" }}
|
||||
{{ partial "tools/categories" }}
|
||||
{{ partial "tools/submit" }}
|
||||
<form id="myform" style="display: flex; flex-shrink: 0; flex-grow: 1; flex-direction: column; max-width: 950px;">
|
||||
{{ partial "orga/generator/partials/input_line" (dict "name" "title" "mandatory" "true") }}
|
||||
{{ partial "orga/generator/content" }}
|
||||
{{ partial "orga/generator/partials/categories" (dict "name" "news" "expanded" "true") }}
|
||||
{{ partial "orga/generator/partials/expand" (dict "id" "Ist es ein Event?" "name" "isevent" "translation" "aufklappen" ) }}
|
||||
<div style="flex-direction: column; margin-left: 2rem;" class="visibleIf" data-visibleif-rule="isevent == 'true'">
|
||||
{{ partial "orga/generator/partials/input_line" (dict "name" "when" "mandatory" "false") }}
|
||||
{{ partial "orga/generator/partials/input_line" (dict "name" "price" "mandatory" "false") }}
|
||||
{{ partial "orga/generator/partials/input_line" (dict "name" "covid" "mandatory" "false") }}
|
||||
{{ partial "orga/generator/partials/input_line" (dict "name" "registeremail" "mandatory" "false") }}
|
||||
{{ partial "orga/generator/partials/categories" (dict "name" "event" "expanded" "true") }}
|
||||
</div>
|
||||
{{ partial "orga/generator/partials/expand" (dict "id" "Verschiedenes" "name" "misc" "translation" "aufklappen" ) }}
|
||||
<div style="flex-direction: column; margin-left: 2rem;" class="visibleIf" data-visibleif-rule="misc == 'true'">
|
||||
{{ partial "orga/generator/partials/truefalse" (dict "name" "featured" "expanded" "true") }}
|
||||
{{ partial "orga/generator/tags" }}
|
||||
</div>
|
||||
{{ partial "orga/generator/submit" }}
|
||||
|
||||
</form>
|
||||
|
||||
<div id='display' class="result" style="white-space: pre;"></div>
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
<label for="content">{{ i18n "subject" }}*</label>
|
||||
<textarea id="contentform" name="content" value="" placeholder=""></textarea>
|
|
@ -0,0 +1,31 @@
|
|||
{{ $in0 := printf "%s" .name }}
|
||||
{{ $in1 := printf "%scategories" .name }}
|
||||
{{ $in2 := printf "%scategory" .name }}
|
||||
{{ $openname := printf "open%s" .name }}
|
||||
{{ $pages := where site.RegularPages "Type" "in" site.Params.mainSections }}
|
||||
{{- $categories := slice -}}
|
||||
{{ range $pages }}
|
||||
{{ range .Param $in1 }}
|
||||
{{- $categories = $categories | append . -}}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{- $categories := $categories | uniq -}}
|
||||
{{ if eq .expanded "true" }}
|
||||
<div style="flex-direction: column;">
|
||||
{{ if i18n .name }}{{ i18n .name }}{{ else }}{{ .name }}{{ end }}{{- if eq .mandatory "true" -}}*{{- end -}}
|
||||
{{ else }}
|
||||
{{ partial "orga/generator/partials/expand" (dict "id" $in0 "name" $openname "translation" "aufklappen" ) }}
|
||||
<div style="flex-direction: column;" class="visibleIf" data-visibleif-rule="{{- $openname }} == 'true'">
|
||||
{{ end }}
|
||||
<fieldset style="max-width: 58.5rem;" id="{{ $in1 }}" name="{{ $in1 }}">
|
||||
{{ range sort $categories }}
|
||||
{{ $n := . | i18n }}
|
||||
{{ if not $n }}
|
||||
{{ $n = . }}
|
||||
{{ end }}
|
||||
<div style="display: flex; flex-direction: row;">
|
||||
<input type="checkbox" name="{{ $in2 }}" id="{{ $in0 }}-cat" value="{{ $n }}"><label style="width: 20rem;" for="{{ $in0 }}-cat">{{ strings.FirstUpper $n }}</label>
|
||||
</div>
|
||||
{{ end }}
|
||||
</fieldset>
|
||||
</div>
|
|
@ -0,0 +1,2 @@
|
|||
<div style="display:flex; flex-direction: row;"> {{ .id }} <input type="checkbox" name="{{ .name }}" value="true" style="font-size: smaller;" /> <div style="font-size: smaller;">{{ .translation }}{{- if eq .mandatory "true" -}}*{{- end -}}</div></div>
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
<label for="{{ .name }}">{{ if i18n .name }}{{ i18n .name }}{{ else }}{{ .name }}{{ end }}{{- if eq .mandatory "true" -}}*{{- end -}}</label>
|
||||
<input type="text" name="{{ .name }}" id="{{ .name }}" value="" placeholder="" />
|
|
@ -0,0 +1,6 @@
|
|||
<label for="{{ .name }}">{{ if i18n .name }}{{ i18n .name }}{{ else }}{{ .name }}{{ end }}{{- if eq .mandatory "true" -}}*{{- end -}}</label>
|
||||
<fieldset id="{{ .name }}" name="{{ .name }}">
|
||||
<div style="display: flex; flex-direction: row;">
|
||||
<input type="checkbox" name="{{ .name }}" id="{{ .name }}" value="{{ .name }}" />Yes
|
||||
</div>
|
||||
</fieldset>
|
|
@ -0,0 +1,25 @@
|
|||
{{ $pages := where site.RegularPages "Type" "in" site.Params.mainSections }}
|
||||
{{- $tags := slice -}}
|
||||
{{ range $pages }}
|
||||
{{- if .Params.tags -}}
|
||||
{{- $tags = $tags | append .Params.tags -}}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{- $tags := $tags | uniq -}}
|
||||
{{ partial "orga/generator/partials/expand" (dict "id" "tags" "name" "opentag" "translation" "aufklappen" ) }}
|
||||
<div style="flex-direction: column;" class="visibleIf" data-visibleif-rule="opentag == 'true'">
|
||||
<fieldset style="display: flex; flex-direction: column; max-width: 58.5rem;" id="tags" name="tags">
|
||||
{{ range sort $tags }}
|
||||
{{ $n := . | i18n }}
|
||||
{{ if not $n }}
|
||||
{{ $n = . }}
|
||||
{{ end }}
|
||||
<div style="display: flex; flex-direction: row;">
|
||||
<input type="checkbox" name="tags" id="{{ . }}-tag" value="{{ . }}"><label style="width: 20rem;" for="{{ . }}-tag">{{ strings.FirstUpper $n }}</label>
|
||||
</div>
|
||||
{{ end }}
|
||||
</fieldset>
|
||||
|
||||
<label style="width: 12vw;" for="newtag">{{ i18n "new" }}</label>
|
||||
<input style="max-width: 58.5rem;" type="text" class="f" name="newtag" id="newtag" placeholder="" />
|
||||
</div>
|
|
@ -3,27 +3,7 @@
|
|||
</div>
|
||||
<article>
|
||||
<div id="articlecontent">
|
||||
<div id="articlemeta">
|
||||
{{ if and (ne .Params.when "") (ne .Params.when nil) }}
|
||||
<div style="margin-bottom: .4em;"><b>{{ .Params.when }}</b></div>
|
||||
{{ end }}
|
||||
{{ if and (ne .Params.price "") (ne .Params.price nil) }}
|
||||
{{ if eq .Params.price "free" }}
|
||||
<div style="margin-bottom: .4em;">Der Eintritt ist frei.</div>
|
||||
{{ else }}
|
||||
<div style="margin-bottom: .4em;">Eintritt: {{ .Params.price }}</div>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ if and (ne .Params.register "") (ne .Params.register nil) }}
|
||||
<div>Anmeldung unter {{ .Params.register | markdownify }} erwünscht</div>
|
||||
{{ end }}
|
||||
{{ if and (ne .Params.covid "") (ne .Params.covid nil) }}
|
||||
<div>Es gilt die {{ .Params.covid }} Regel</div>
|
||||
{{ end }}
|
||||
{{ if and (ne .Params.contact "") (ne .Params.contact nil) }}
|
||||
<div>Kontakt: <a href="mailto://{{ .Params.contact }}">{{ .Params.contact }}</a></div>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ partial "structure/article_meta" (dict "context" .) }}
|
||||
<div id="articleinner">
|
||||
<div id="articledata">
|
||||
{{- if .Resources.ByType "image" -}}
|
||||
|
@ -35,7 +15,7 @@
|
|||
{{ range .Resources.ByType "image" }}
|
||||
{{- $pic := . -}}
|
||||
{{- $thumb := $pic.Resize "1024x" }}
|
||||
<a href="{{ . }}"><img src="{{- $thumb.Permalink -}}"/></a>
|
||||
<a href="{{ . }}"><img src="{{- $thumb.Permalink -}}" style="border-radius: 15px;" /></a>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{- end }}
|
||||
|
@ -45,20 +25,19 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="article_footer" style="margin-top: 1rem; display: flex; align-items: baseline; font-size: x-small; border-top: 1px solid var(--background); color: var(--text-muted);">
|
||||
{{ if .IsTranslated }}
|
||||
<div style="flex-grow: 0; flex-direction: column; margin-right: 1rem;">
|
||||
<b>{{ "Translations" }}</b>
|
||||
{{ range .Translations }}
|
||||
<li style="list-style: none; text-decoration: none; font-size: x-small; color: var(--text-muted);">
|
||||
<a href="{{ .Permalink }}" class="underline">{{ T .Lang }}</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
<div style="flex-grow: 1; flex-direction: column;">
|
||||
<b>Verfasst am</b><br>
|
||||
{{ .Date | time.Format ":date_full" }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</article>
|
||||
|
||||
{{ define "sidebar" }}
|
||||
|
||||
<h3>{{ T "tags" }}</h3>
|
||||
<div class="tags-list" style="display: flex; flex-direction: column;">
|
||||
{{- with .Params.tags -}}
|
||||
{{- if ge (len .) 1 -}}
|
||||
{{- range . -}}
|
||||
<a href="{{ $.Site.BaseURL }}tags/{{ . | urlize }}/">#{{ . }}</a>
|
||||
{{ end -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
</div>
|
||||
{{ end }}
|
|
@ -0,0 +1,43 @@
|
|||
{{ $invis := "none" }}
|
||||
{{ $covid := "true" }}
|
||||
{{ $price := "true" }}
|
||||
{{ $contact := "true" }}
|
||||
{{ $registeremail := "true" }}
|
||||
{{ if .invis }}
|
||||
{{ $invis = split .invis "," }}
|
||||
{{ range $invis }}
|
||||
{{ if eq . "covid" }}
|
||||
{{ $covid = "false" }}
|
||||
{{ end }}
|
||||
{{ if eq . "price" }}
|
||||
{{ $price = "false" }}
|
||||
{{ end }}
|
||||
{{ if eq . "contact" }}
|
||||
{{ $contact = "false" }}
|
||||
{{ end }}
|
||||
{{ if eq . "registeremail" }}
|
||||
{{ $registeremail = "false" }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
<div id="articlemeta" style="font-size: smaller;">
|
||||
{{ if and (ne .context.Params.when "") (ne .context.Params.when nil) }}
|
||||
<div style="margin-bottom: .4em; font-size: medium;"><b>{{ .context.Params.when }}</b></div>
|
||||
{{ end }}
|
||||
{{ if and (ne .context.Params.price "") (ne .context.Params.price nil) (eq $price "true") }}
|
||||
{{ if eq .context.Params.price "free" }}
|
||||
<div>Der Eintritt ist frei.</div>
|
||||
{{ else }}
|
||||
<div>Eintritt: {{ .context.Params.price }}</div>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ if and (ne .context.Params.registeremail "") (ne .context.Params.registeremail nil) (eq $registeremail "true")}}
|
||||
<div>Anmeldung unter {{ .context.Params.registeremail | markdownify }} erwünscht</div>
|
||||
{{ end }}
|
||||
{{ if and (ne .context.Params.covid "") (ne .context.Params.covid nil) (eq $covid "true") }}
|
||||
<div>Es gilt die {{ .context.Params.covid }} Regel</div>
|
||||
{{ end }}
|
||||
{{ if and (ne .context.Params.contact "") (ne .context.Params.contact nil) (eq $contact "true") }}
|
||||
<div>Kontakt: <a href="mailto://{{ .context.Params.contact }}">{{ .context.Params.contact }}</a></div>
|
||||
{{ end }}
|
||||
</div>
|
|
@ -1,6 +1,10 @@
|
|||
{{- if eq site.Params.contact true }}
|
||||
<div class="infobox">
|
||||
<a href="{{- "contact" | absLangURL -}}">{{- i18n "contact" | strings.FirstUpper -}}:</a><br><br>
|
||||
{{ $contact := "contact" }}
|
||||
{{ if i18n $contact }}
|
||||
{{ $contact = i18n "contact" }}
|
||||
{{ end }}
|
||||
<a href="{{- "contact" | absLangURL -}}">{{- $contact | strings.FirstUpper -}}:</a><br><br>
|
||||
{{- partial "contact.html" -}}
|
||||
</div>
|
||||
{{- end -}}
|
||||
|
@ -8,10 +12,18 @@
|
|||
<div class="infobox">
|
||||
<a href="{{- "orga" | absLangURL -}}">Orga</a><br><br>
|
||||
{{- if eq site.Params.archive true -}}
|
||||
<a href="{{- "archive" | absLangURL -}}">{{- i18n "archive" | strings.FirstUpper -}}</a><br><br>
|
||||
{{ $archive := "archive" }}
|
||||
{{ if i18n $archive }}
|
||||
{{ $archive = i18n "archive" }}
|
||||
{{ end }}
|
||||
<a href="{{- "archive" | absLangURL -}}">{{- $archive | strings.FirstUpper -}}</a><br><br>
|
||||
{{- end -}}
|
||||
{{- if eq site.Params.imprint true -}}
|
||||
<a href="{{- "imprint" | absLangURL -}}">{{- i18n "imprint" | strings.FirstUpper -}}</a><br><br>
|
||||
{{ $imprint := "imprint" }}
|
||||
{{ if i18n $imprint }}
|
||||
{{ $imprint = i18n "imprint" }}
|
||||
{{ end }}
|
||||
<a href="{{- "imprint" | absLangURL -}}">{{- $imprint | strings.FirstUpper -}}</a><br><br>
|
||||
{{- end -}}
|
||||
</div>
|
||||
|
||||
|
|
|
@ -3,13 +3,17 @@
|
|||
<img src="/images/logo.svg" alt="SVG mit img laden" width="auto" height="100%" >
|
||||
</a>
|
||||
<div id="menu">
|
||||
{{ $visible := site.Params.mainMenu }}
|
||||
{{- range site.Params.mainSections -}}
|
||||
{{ if eq . "about" }}
|
||||
{{ $name := . | T }}
|
||||
{{ if eq $name "" }}
|
||||
{{ $name = . }}
|
||||
{{ $section := . }}
|
||||
{{ range $visible }}
|
||||
{{ if eq $section . }}
|
||||
{{ $name := . | T }}
|
||||
{{ if eq $name "" }}
|
||||
{{ $name = . }}
|
||||
{{ end }}
|
||||
<a href="{{- . | relLangURL -}}">{{- $name | humanize -}}</a>
|
||||
{{ end }}
|
||||
<a href="{{- . | relLangURL -}}">{{- $name | humanize -}}</a>
|
||||
{{ end }}
|
||||
{{- end -}}
|
||||
|
||||
|
|
|
@ -0,0 +1,37 @@
|
|||
{{ if .Title }}
|
||||
<article class="articlebgcol1 borderrad25"><a href="{{- .Permalink -}}">
|
||||
<div id="articletitle">
|
||||
<h2>{{- .Title -}}</h2>
|
||||
</div>
|
||||
<div id="articlecontent">
|
||||
{{ partial "structure/article_meta" (dict "context" . "invis" "covid,registeremail,contact") }}
|
||||
<div id="articleinner">
|
||||
<div id="articledata">
|
||||
{{- if .Resources.ByType "image" -}}
|
||||
{{- $pic := index (.Resources.ByType "image") 0 -}}
|
||||
{{ $thumb := "" }}
|
||||
{{ if eq .Content "" }}
|
||||
<div class="notext">
|
||||
{{- $thumb = $pic.Resize "1024x" }}
|
||||
{{ else }}
|
||||
<div class="text">
|
||||
{{- $thumb = $pic.Resize "2048x" }}
|
||||
{{ end }}
|
||||
<img src="{{- $thumb.Permalink -}}" style="border-radius: 15px;" />
|
||||
</div>
|
||||
{{- end }}
|
||||
<div id="articletext">
|
||||
{{- if .Params.description -}}
|
||||
{{- .Params.description -}}
|
||||
{{- else -}}
|
||||
{{- .Summary -}}
|
||||
{{- end }}
|
||||
{{ if .Truncated }}
|
||||
<div id="readmore">{{- i18n "readmore" -}}..</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</a></article>
|
||||
{{ end }}
|
|
@ -0,0 +1,102 @@
|
|||
{{ $paginator := .paginator}}
|
||||
<div id="pagination">
|
||||
<!-- Number of links either side of the current page. -->
|
||||
{{ $adjacent_links := 2 }}
|
||||
|
||||
<!-- $max_links = ($adjacent_links * 2) + 1 -->
|
||||
{{ $max_links := (add (mul $adjacent_links 2) 1) }}
|
||||
|
||||
<!-- $lower_limit = $adjacent_links + 1 -->
|
||||
{{ $lower_limit := (add $adjacent_links 1) }}
|
||||
|
||||
<!-- $upper_limit = $paginator.TotalPages - $adjacent_links -->
|
||||
{{ $upper_limit := (sub $paginator.TotalPages $adjacent_links) }}
|
||||
|
||||
<!-- If there's more than one page. -->
|
||||
{{ if gt $paginator.TotalPages 1 }}
|
||||
|
||||
|
||||
<!-- First page. -->
|
||||
{{ if ne $paginator.PageNumber 1 }}
|
||||
<a class="pagination__link pagination__link--first" href="{{ $paginator.First.URL }}">
|
||||
««
|
||||
</a>
|
||||
{{ end }}
|
||||
|
||||
<!-- Previous page. -->
|
||||
{{ if $paginator.HasPrev }}
|
||||
<a href="{{ $paginator.Prev.URL }}" class="pagination__link pagination__link--previous">
|
||||
«
|
||||
</a>
|
||||
{{ end }}
|
||||
<!-- Page numbers. -->
|
||||
{{ range $paginator.Pagers }}
|
||||
{{ $page_number_flag := false }}
|
||||
|
||||
|
||||
<!-- Advanced page numbers. -->
|
||||
{{ if gt $paginator.TotalPages $max_links }}
|
||||
|
||||
|
||||
<!-- Lower limit pages. -->
|
||||
<!-- If the user is on a page which is in the lower limit. -->
|
||||
{{ if le $paginator.PageNumber $lower_limit }}
|
||||
|
||||
<!-- If the current loop page is less than max_links. -->
|
||||
{{ if le .PageNumber $max_links }}
|
||||
{{ $page_number_flag = true }}
|
||||
{{ end }}
|
||||
|
||||
|
||||
<!-- Upper limit pages. -->
|
||||
<!-- If the user is on a page which is in the upper limit. -->
|
||||
{{ else if ge $paginator.PageNumber $upper_limit }}
|
||||
|
||||
<!-- If the current loop page is greater than total pages minus $max_links -->
|
||||
{{ if gt .PageNumber (sub $paginator.TotalPages $max_links) }}
|
||||
{{ $page_number_flag = true }}
|
||||
{{ end }}
|
||||
|
||||
|
||||
<!-- Middle pages. -->
|
||||
{{ else }}
|
||||
|
||||
{{ if and ( ge .PageNumber (sub $paginator.PageNumber $adjacent_links) ) ( le .PageNumber (add $paginator.PageNumber $adjacent_links) ) }}
|
||||
{{ $page_number_flag = true }}
|
||||
{{ end }}
|
||||
|
||||
{{ end }}
|
||||
|
||||
|
||||
<!-- Simple page numbers. -->
|
||||
{{ else }}
|
||||
|
||||
{{ $page_number_flag = true }}
|
||||
|
||||
{{ end }}
|
||||
|
||||
<!-- Output page numbers. -->
|
||||
{{ if eq $page_number_flag true }}
|
||||
<a href="{{ .URL }}" class="pagination__link">
|
||||
{{ .PageNumber }}
|
||||
</a>
|
||||
{{ end }}
|
||||
|
||||
{{ end }}
|
||||
|
||||
<!-- Next page. -->
|
||||
{{ if $paginator.HasNext }}
|
||||
<a href="{{ $paginator.Next.URL }}" class="pagination__link pagination__link--next">
|
||||
»
|
||||
</a>
|
||||
{{ end }}
|
||||
|
||||
<!-- Last page. -->
|
||||
{{ if ne $paginator.PageNumber $paginator.TotalPages }}
|
||||
<a class="pagination__link pagination__link--last" href="{{ $paginator.Last.URL }}">
|
||||
»»
|
||||
</a>
|
||||
{{ end }}
|
||||
|
||||
{{ end }}
|
||||
</div>
|
|
@ -1,16 +1,30 @@
|
|||
{{ $s := .Site.Params }}
|
||||
<section class="sidebar_inner">
|
||||
|
||||
<h3>{{ T "events" }}</h3>
|
||||
<a href="{{ "/events" | relLangURL}}">{{ "all" | T }}</a>
|
||||
{{ range $taxonomyname, $taxonomy := .Site.Taxonomies.categories }}
|
||||
{{ $orig := $taxonomyname }}
|
||||
{{ if ne (i18n $taxonomyname) "" }}
|
||||
{{ $taxonomyname = i18n $taxonomyname }}
|
||||
{{ else }}
|
||||
{{ $taxonomyname = $taxonomyname | humanize }}
|
||||
{{ end }}
|
||||
<li style="list-style: none;"><a href="{{ "categories/" | relLangURL}}{{ $orig | urlize }}">{{ $taxonomyname }}</a></li>
|
||||
{{ if gt .Site.Taxonomies.categories 0 }}
|
||||
<h3>{{ T "news" }}</h3>
|
||||
<a href="{{ "/news" | relLangURL}}">{{ "all" | T }}</a>
|
||||
{{ range $taxonomyname, $taxonomy := .Site.Taxonomies.categories }}
|
||||
{{ $orig := $taxonomyname }}
|
||||
{{ if ne (i18n $taxonomyname) "" }}
|
||||
{{ $taxonomyname = i18n $taxonomyname }}
|
||||
{{ else }}
|
||||
{{ $taxonomyname = $taxonomyname | humanize }}
|
||||
{{ end }}
|
||||
<li style="list-style: none;"><a href="{{ "categories/" | relLangURL}}{{ $orig | urlize }}">{{ $taxonomyname }}</a></li>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ if gt .Site.Taxonomies.events 0 }}
|
||||
<h3>{{ T "events" }}</h3>
|
||||
<a href="{{ "/events" | relLangURL}}">{{ "all" | T }}</a>
|
||||
{{ range $taxonomyname, $taxonomy := .Site.Taxonomies.events }}
|
||||
{{ $orig := $taxonomyname }}
|
||||
{{ if ne (i18n $taxonomyname) "" }}
|
||||
{{ $taxonomyname = i18n $taxonomyname }}
|
||||
{{ else }}
|
||||
{{ $taxonomyname = $taxonomyname | humanize }}
|
||||
{{ end }}
|
||||
<li style="list-style: none;"><a href="{{ "events/" | relLangURL}}{{ $orig | urlize }}">{{ $taxonomyname }}</a></li>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ if .IsHome }}
|
||||
<h4>{{ "Languages" }}</h3>
|
||||
|
@ -19,6 +33,10 @@
|
|||
<li style="list-style: none;"><a href="{{- .Permalink -}}">{{- T .Lang -}}</a></li>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ $t := where .Site.Taxonomies.categories ".Page.Section" "events" }}
|
||||
{{ range $t }}
|
||||
<li><a href="{{ .Page.Permalink }}">{{ .Page.Title }}</a></li>
|
||||
{{ end }}
|
||||
</section>
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
<div class="footer_color" style="margin-top: 0; text-align: right;"><b>Termine</b></div>
|
||||
<li style="list-style: none; text-align: right;"><a href="{{ "/events" | relLangURL}}">{{ "all" | T }}</a></li>
|
||||
{{ range $taxonomyname, $taxonomy := .Site.Taxonomies.categories }}
|
||||
{{ range $taxonomyname, $taxonomy := .Site.Taxonomies.eventcategories }}
|
||||
{{ $orig := $taxonomyname }}
|
||||
{{ if ne (i18n $taxonomyname) "" }}
|
||||
{{ $taxonomyname = i18n $taxonomyname }}
|
||||
|
|
|
@ -1,51 +0,0 @@
|
|||
{{ $pages := where site.RegularPages "Type" "in" site.Params.mainSections }}
|
||||
{{- $tags := slice -}}
|
||||
{{- $categories := slice -}}
|
||||
{{ range $pages }}
|
||||
{{- if .Params.tags -}}
|
||||
{{- $tags = $tags | append .Params.tags -}}
|
||||
{{ end }}
|
||||
{{- if .Params.categories -}}
|
||||
{{- $categories = $categories | append .Params.categories -}}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{- $categories := $categories | uniq -}}
|
||||
{{- $tags := $tags | uniq -}}
|
||||
|
||||
<div style="display:flex; flex-direction: row;"> Kategorien <input type="checkbox" name="opencat" value="true" /> aufklappen</div>
|
||||
<div style="flex-direction: column;" class="visibleIf" data-visibleif-rule="opencat == 'true'">
|
||||
<fieldset style="max-width: 58.5rem;" id="categories" name="categories">
|
||||
{{ range sort $categories }}
|
||||
{{ $n := . | i18n }}
|
||||
{{ if not $n }}
|
||||
{{ $n = . }}
|
||||
{{ end }}
|
||||
<div style="display: flex; flex-direction: row;">
|
||||
<input type="checkbox" name="category" id="{{ . }}-cat" value="{{ . }}"><label style="width: 20rem;" for="{{ . }}-cat">{{ strings.FirstUpper $n }}</label>
|
||||
</div>
|
||||
{{ end }}
|
||||
</fieldset>
|
||||
<label style="width: 12vw;" for="newcat">{{ i18n "new" }}</label>
|
||||
<input style="max-width: 58.5rem;" type="text" class="f" name="newcat" id="newcat" placeholder="" />
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div style="display:flex; flex-direction: row;"> Tags <input type="checkbox" name="opentag" value="true" /> aufklappen</div>
|
||||
<div style="flex-direction: column;" class="visibleIf" data-visibleif-rule="opentag == 'true'">
|
||||
<fieldset style="display: flex; flex-direction: column; max-width: 58.5rem;" id="tags" name="tags">
|
||||
{{ range sort $tags }}
|
||||
{{ $n := . | i18n }}
|
||||
{{ if not $n }}
|
||||
{{ $n = . }}
|
||||
{{ end }}
|
||||
<div style="display: flex; flex-direction: row;">
|
||||
<input type="checkbox" name="tags" id="{{ . }}-tag" value="{{ . }}"><label style="width: 20rem;" for="{{ . }}-tag">{{ strings.FirstUpper $n }}</label>
|
||||
</div>
|
||||
{{ end }}
|
||||
</fieldset>
|
||||
|
||||
<label style="width: 12vw;" for="newtag">{{ i18n "new" }}</label>
|
||||
<input style="max-width: 58.5rem;" type="text" class="f" name="newtag" id="newtag" placeholder="" />
|
||||
</div>
|
|
@ -1,2 +0,0 @@
|
|||
<label style="width: 12vw;" class="f" for="content">{{ i18n "subject" }}*</label>
|
||||
<textarea id="contentform" name="content" value="" placeholder=""></textarea>
|
|
@ -1,2 +0,0 @@
|
|||
<label for="covid">{{ if (i18n "covid") }}{{ i18n "covid" }}{{ else }}Covid{{ end }}</label>
|
||||
<input type="text" name="covid" id="covid" value="" placeholder="" />
|
|
@ -1,2 +0,0 @@
|
|||
<label for="title">{{ i18n "event" }}</label>
|
||||
<input type="event" name="event" id="event" value="" placeholder="" />
|
|
@ -1,5 +0,0 @@
|
|||
<fieldset style="display: flex; flex-direction: column; max-width: 58.5rem;" id="featured" name="featured">
|
||||
<div style="display: flex; flex-direction: row;">
|
||||
<input type="checkbox" name="featured" id="featured" value="featured"><label style="width: 20rem;" for="featured">{{ i18n "featured" }}</label>
|
||||
</div>
|
||||
</fieldset>
|
|
@ -1,2 +0,0 @@
|
|||
<label for="price">{{ i18n "price" }}</label>
|
||||
<input type="text" name="price" id="price" value="" placeholder="" />
|
|
@ -1,2 +0,0 @@
|
|||
<label for="registermail">{{ if (i18n "registermail") }}{{ i18n "registermail" }}{{ else }}Register Mail{{ end }}</label>
|
||||
<input type="text" name="registermail" id="registermail" value="" placeholder="" />
|
|
@ -1,2 +0,0 @@
|
|||
<label for="title">{{ i18n "title" }}*</label>
|
||||
<input type="text" name="title" id="title" value="" placeholder="" />
|
|
@ -35,24 +35,16 @@ function showInput(e) {
|
|||
var form = document.querySelector('form[id="myform"]');
|
||||
var title = form.elements['title'].value;
|
||||
var content = form.elements['content'].value;
|
||||
var event = form.elements['event'].value;
|
||||
var cats = check_checkboxes('category');
|
||||
var newcat = testor(form.elements['newcat'].value.split(','));
|
||||
var when = form.elements['when'].value;
|
||||
var covid = form.elements['covid'].value;
|
||||
var price = form.elements['price'].value;
|
||||
var registeremail = form.elements['registeremail'].value;
|
||||
var cats_event = check_checkboxes('eventcategory');
|
||||
var cats_news = check_checkboxes('newscategory');
|
||||
var tags = check_checkboxes('tags');
|
||||
var newtag = testor(form.elements['newtag'].value.split(','));
|
||||
var featured = check_checkboxes('featured');
|
||||
|
||||
if (newcat != '""') {
|
||||
var ncats = newcat;
|
||||
}
|
||||
|
||||
if (cats != '') {
|
||||
var ncats = cats;
|
||||
}
|
||||
|
||||
if (cats != '' && newcat != '""') {
|
||||
var ncats = cats + "," + newcat;
|
||||
}
|
||||
|
||||
if (newtag != '""') {
|
||||
var ntags = newtag;
|
||||
|
@ -77,6 +69,7 @@ function showInput(e) {
|
|||
|
||||
|
||||
if (title && content) {
|
||||
display.innerHTML += "<div style=\"background-color: grey;\"";
|
||||
display.innerHTML += "---<br>";
|
||||
display.innerHTML += "title: \"" + title + "\"<br>";
|
||||
display.innerHTML += "date: \"" + datestring + "<br>";
|
||||
|
@ -85,17 +78,32 @@ function showInput(e) {
|
|||
display.innerHTML += "featured: true<br>";
|
||||
}
|
||||
|
||||
if (event) {
|
||||
display.innerHTML += "when: \"" + event + "\"<br>";
|
||||
if (when) {
|
||||
display.innerHTML += "when: \"" + when + "\"<br>";
|
||||
}
|
||||
|
||||
if (cats_news != '') {
|
||||
display.innerHTML += "categories: \[" + cats_news + "]<br>";
|
||||
}
|
||||
|
||||
if (ncats) {
|
||||
display.innerHTML += "categories: \[" + ncats + "]<br>";
|
||||
if (cats_event != '') {
|
||||
display.innerHTML += "events: \[" + cats_event + "]<br>";
|
||||
}
|
||||
|
||||
if (ntags) {
|
||||
display.innerHTML += "tags: \[" + ntags + "]<br>";
|
||||
}
|
||||
if (covid) {
|
||||
display.innerHTML += "covid: \"" + covid + "\"<br>";
|
||||
}
|
||||
if (price) {
|
||||
display.innerHTML += "price: \"" + price + "\"<br>";
|
||||
}
|
||||
if (registeremail) {
|
||||
display.innerHTML += "registeremail: \"" + registeremail + "\"<br>";
|
||||
}
|
||||
display.innerHTML += "---<br>";
|
||||
display.innerHTML += "</div>";
|
||||
if (content) {
|
||||
display.innerHTML += content;
|
||||
}
|
||||
|
|