fixup #13

Merged
teldra merged 5 commits from teldra/bunteshaus.de:fixup into main 2022-04-28 18:16:58 +02:00
55 changed files with 135 additions and 266 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

View File

@ -2,4 +2,4 @@
section = ["HTML", "RSS"]
page = ["HTML"]
taxonomy = ["HTML", "RSS"]
term = ["HTML", "RSS"]
term = ["HTML"]

View File

@ -26,7 +26,7 @@ mainMenu = ['about']
searchSections = ['news']
# how long stays a featrued article on frontpage as featured (in weeks)
featured_expire = "1"
featured_expire = "28"
placeholder = "/images/no_article_pic.png"
@ -42,4 +42,4 @@ placeholder = "/images/no_article_pic.png"
nonprofit = true
[foundations]
brentrup = "https://heise.de"
jusos = "https://jusos.de/"

View File

@ -1 +1 @@
news = '/:year/:month/:day/:title/'
news = '/news/:year/:month/:day/:title/'

View File

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 279 KiB

9
content/links.de.md Normal file
View File

@ -0,0 +1,9 @@
---
title: "Links"
layout: "links"
---
http://list-celle.over-blog.com/
Gruppe LiST: Land in Sicht - Transition Celle
https://rheinmetallentwaffnen.noblogs.org/
Aktionstage, Camp & Demonstration “Rheinmetall entwaffnen” in Unterlüß

View File

@ -1,4 +0,0 @@
---
title: "Links"
layout: "links"
---

View File

@ -1,4 +0,0 @@
---
title: "Gruppe LiST: Land in Sicht - Transition Celle"
link: "http://list-celle.over-blog.com/"
---

View File

@ -1,4 +0,0 @@
---
title: "Aktionstage, Camp & Demonstration “Rheinmetall entwaffnen” in Unterlüß"
link: "https://rheinmetallentwaffnen.noblogs.org/"
---

Binary file not shown.

View File

@ -6,4 +6,3 @@ events: ["Party"]
tags: ["Holzi","Christoph U","Walter B 38","Kicki","E R K","Traumfabrik"]
price: "8DM"
---
![](1)

View File

@ -4,4 +4,3 @@ lastmod: 1997-09-04T14:00:00+02:00
when: "04.09.1997, 19Uhr"
tags: ["Antifa","Cafe"]
---
![](1)

View File

@ -4,4 +4,3 @@ lastmod: 1997-10-25T14:00:00+02:00
when: "27.10.1997, 20Uhr"
events: ["Kino"]
---
![](1)

View File

@ -5,4 +5,3 @@ when: "Premiere: 29.11.1997, 20Uhr"
events: ["Theater"]
tags: ["Theater Mazzoni"]
---
![](1)

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

@ -4,4 +4,3 @@ lastmod: 1998-10-28T14:00:00+02:00
when: "28.10.1998 - 05.12.1998"
tags: ["Antifa","Antifachismus","CD-Kaserne","Informationsveranstaltungen","Kino","Kino 8 1/2","Soli","Verbrechen der Wehrmacht","Begleitveranstaltung","Hannover","Begleitveranstaltung zur Ausstellung","Hannover","Urbanus Rhegius Haus","AntiFa Info-Café","Archiv für neue soziale Bewegungen","Gertrud Schröter","Soli-Party","Theater Gegendruck","Historisches Seminar Universität Hannover","Universität Hannover","Hamburger Institut für Sozialforschung","Begleitprogramm","Ludwig Baumann","Vortrag","Kai-Uwe Geissler","FU Berlin","Bergen-Belsen","Andrej Turkovskij"]
---
![Flyer Begleitveranstaltung Frontseite](1), ![Flyer Begleitveranstaltung Programm](2), ![Flyer Begleitveranstaltung letzte Seite](3)

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

@ -5,4 +5,3 @@ when: "11.02.2002"
tags: ["Antifaschismus","Antirassismus","Ausstellung","Buntes Haus","Informationsveranstaltungen","VVN","BdA","Neofaschismus","Neonazis","Neonazis in Celle",VVN BdA","Bund der Antifaschistinnen und Antifaschisten","Vereinigung der Verfolgten des Naziregimes"]
price: "free"
---
![Bild zur Ausstellung Neofaschismus im Bunten Haus](1), ![Bild eines Ausstellungsplakats über Neofaschismus in Celle und Umgebung](2)

View File

@ -4,5 +4,5 @@ lastmod: 2002-02-20T14:00:00+02:00
when: "20.02.,2002, 19:00 Uhr"
tags: ["Antifa","Informationsveranstaltungen","PKK Verbot","Antifa Celle","Kurdistan","Kurdistan Solidarität Uelzen","AZADI","Repression","Kazim E","Manfred Kanther","Bundesinnenministerium","OLG Celle","Oberlandesgericht","Kurden","Türkei"]
price: "free"
contact: "kurd-soli-uelzen@gmx.net"
contact_mail: "kurd-soli-uelzen@gmx.net"
---

View File

@ -5,4 +5,3 @@ when: "01.09.2002, 19:00 Uhr"
events: ["Kino"]
tags: ["Antifaschismus","Antikrieg","Antirassismus","Film","Nackt unter Wölfen","Regier","Frank Beyer","Buchenwald","Widerstand","Nationalsozialismus","DEFA"]
---
![Flyer Front](1), ![Flyer Rückseite](2)

View File

@ -4,7 +4,7 @@ date: "2022-04-04T23:16:00+02:00"
when: "Montag, 04.04.2022, 23.23 Uhr"
events: ["Konzerte"]
price: "free"
foundations: ["brentrup","aktionmensch"]
foundations: ["rote_hilfe"]
covid: "Keine Masken mehr!"
---

View File

@ -2,7 +2,7 @@
title: "Gedenken an Arkan"
date: 2022-04-05T09:31:00+02:00
when: "Donnerstag, 07.04.2022, 18:00 Uhr, Celler Triftpark"
contact: "ArkanGedenken@riseup.net"
contact_mail: "ArkanGedenken@riseup.net"
featured: true
---

View File

@ -3,6 +3,7 @@ title: "Matrix Space"
date: "2022-04-11T20:37:00+02:00"
about: true
categories: ["Buha"]
featured: true
---
Wir betreiben einen Space im Matrix Netzwerk.

View File

@ -5,7 +5,8 @@ lastmod: "2021-04-06T19:00:00+02:00"
about: true
when: "Jeden Mittwoch 18:30-19:00Uhr & Samstags 15:00-15:30Uhr"
events: ["Regelmäßig"]
contact: "foodsavingcelle@riseup.net"
contact_mail: "foodsavingcelle@riseup.net"
insta: "foodsavingcelle"
featured: true
---
Die **kostenfreie** Verteilung von gespendeten und geretteten **Lebensmitteln** geht auch nach der Wiedereröffnung der Tafel weiter.
@ -53,7 +54,4 @@ Natürlich wollen die Aktiven sich und alle anderen schützen: Deswegen wird das
„Sagt Menschen Bescheid, die wenig Geld haben und sich über Obst und Gemüse freuen würden!“ ruft Nina auf, „Engagiert euch, bietet eure Unterstützung an, wenn ihr könnt, sprecht Nachbar_innen und Wohnungslose an, damit sie vom Projekt erfahren. Denn Menschen zu helfen und Unterstützung zu erfahren ist wertvoller für die Gesellschaft als Geld und Banken. Nicht nur während Corona.“
Kontakt:
Mail: foodsavingcelle@riseup.net
Instagram: www.instagram.com/foodsavingcelle
Nebenan.de: https://nebenan.de/places/organizations/6021

View File

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

View File

@ -36,11 +36,21 @@ forms:
input_type: text
name: "Preis"
placeholder: "3€ oder \"free\" oder \"donation\""
- title: contact
- title: contact_mail
group: events
input_type: text
name: "Kontakt"
name: "Kontaktmail"
placeholder: "info@bunteshaus.de"
- title: insta
group: events
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
@ -58,17 +68,19 @@ forms:
group: misc
input_type: checkbox
name: "Featured"
help: "Damit erscheint der Artikel für 2 Wochen auf der Startseite"
help: "Damit erscheint der Artikel für 4 Wochen auf der Startseite"
- title: about
group: misc
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/images/foundations mit dem gleichen Namen hinterlegt werden"
- title: tags
group: misc
input_type: mc
@ -77,12 +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"
input_type: date
name: "Zurueckdatieren"
help: "falls ein Artikel nachgetragen werden muss"
- title: results
input_type: results
- title: submit

View File

@ -1,7 +1,6 @@
article {
flex-grow: 1;
flex-shrink: 0;
background-color: var(--background);
padding: 1rem;
margin-bottom: 2rem;
border-radius: 10px;

View File

Before

Width:  |  Height:  |  Size: 27 KiB

After

Width:  |  Height:  |  Size: 27 KiB

View File

@ -8,7 +8,7 @@
{{ $partial := "" }}
{{ $title := "" }}
{{ $pic := "true" }}
{{ $pre := "l1" }}
{{ $pre := "layout" }}
{{- $paginator := "" -}}
{{ $part := .Layout }}
{{ $partial_before := "" }}
@ -24,13 +24,11 @@
{{ else if eq .Section "featured" }}
{{- $pages = where $pages ".Params.featured" "=" true -}}
{{ end }}
{{ else if or (eq .Layout "contact") (eq .Layout "imprint") }}
{{ $partial_before = "snippets/contact" }}
{{ else }}
{{ if eq .Kind "term" }}
{{- $pages = .Data.Pages -}}
{{ $part = "article_list" }}
{{ else if or (eq .Kind "taxonomy") }}
{{ else if eq .Kind "taxonomy" }}
{{- $pages = .Data.Terms.Alphabetical -}}
{{ $part = "tags_n_categories" }}
{{ end }}

View File

@ -1,6 +1,6 @@
{{- $pages := where (where .Site.RegularPages "Permalink" "!=" .Permalink) "Type" "in" .Site.Params.searchSections -}}
{{- $title := lower .Title -}}
{{- if eq $title "events" -}}
{{- if eq .Section "events" -}}
{{- $pages = where $pages ".Params.when" "ne" nil -}}
{{- end -}}
{{- $limit := .Site.Config.Services.RSS.Limit -}}
@ -64,7 +64,7 @@
{{- end -}}
{{- $img := index (.Resources.ByType "image") 0 -}}
{{- with $img -}}
{{- $img := .Resize "640x" -}}
{{- $img := .Resize "500x" -}}
{{- $c = printf "%s<img src=\"%s\" width=\"%d\" height=\"%d\" />" $c $img.Permalink $img.Width $img.Height -}}
{{- end -}}
{{- printf "<![CDATA[%s]]>" $c | safeHTML -}}

View File

@ -11,6 +11,11 @@
{{ $partial = "layout/generator" }}
{{ else if eq .Params.tool "nottranslated" }}
{{ $partial = "layout/nottranslated" }}
{{ else if or (eq .Layout "contact") (eq .Layout "imprint") }}
{{ $partial_before = "snippets/contact" }}
{{ $partial = printf "layout/%s" .Layout }}
{{ else if eq .Layout "archive" }}
{{ $partial = printf "layout/%s" .Layout }}
{{ end }}
<article>
{{ partial $partial (dict "context" . "pic" $pic "content" .Content "partial_before" $partial_before "type" "article") }}

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,13 +6,14 @@
{{ $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 }}
{{ partial "l1/article_list" (dict "context" . "pages" $featured "amount" "3" "title" "Featured") }}
{{ partial "layout/article_list" (dict "context" . "pages" $featured "amount" "3" "title" "Featured") }}
{{ end }}
{{ if gt (len $posts) 1 }}
{{ partial "l1/article_list" (dict "context" . "paginator" $paginator "amount" "5" "title" "News" "type" "list") }}
{{ partial "layout/article_list" (dict "context" . "paginator" $paginator "amount" "5" "title" "News" "type" "list") }}
{{ partial "snippets/paginator" (dict "paginator" $paginator) }}
{{ end }}
{{ end }}

View File

@ -1,34 +0,0 @@
{{ $pic := "solo" }}
{{ $text := "solo" }}
{{- if and (.context.Resources.ByType "image") (.context.Content) -}}
{{ $pic = "multiple_small" }}
{{ $text = "multiple_big" }}
{{ end }}
{{ $img := "" }}
{{ $thumb := "" }}
{{- if .context.Resources.ByType "image" -}}
{{- $img = index (.context.Resources.ByType "image") 0 -}}
{{- $thumb = $img.Resize "1024x" }}
{{ if .content }}
{{- $thumb = $img.Resize "500x" }}
{{ end }}
{{ end }}
<section>
<div class="articleinner">
{{ if and (ne $img "") (eq .pic true)}}
<div class="articlepicture {{ $pic }}">
{{ if and (ne .type "list") (.context.Resources.ByType "image") }}<a href="{{- $img.Permalink -}}">{{ end }}
<img src="{{- $thumb.Permalink -}}" class="borderrad4px" />
{{ if ne .type "list" }}</a>{{ end }}
{{ if eq .type "article" }}{{ end }}
</div>
{{ end }}
<div class="articletext {{ $text }}">
{{ if .partial_before }}
{{ partial .partial_before (dict "context" .context "pic" .pic) }}
{{ end }}
{{ .content }}
</div>
</div>
</section>

View File

@ -1,12 +0,0 @@
{{ if ne .context.Content "" }}
<section>
{{ partial "snippets/content" (dict "content" .context.Content) }}
</section>
{{ end }}
{{ range .context.Pages }}
<section>
<a href="{{ .Params.link }}" class="underline">{{ .Params.link }}</a><br>
{{ .Title }}<br>
<br>
</section>
{{ end }}

View File

@ -1,6 +0,0 @@
<article>
{{ $type := .type }}
{{ range .pages }}
<a href="{{ .Page.Permalink }}">{{ .Page.Title }}</a> {{ if eq $type "taxonomy"}}{{ .Count }}{{ end }}
{{ end }}
</article>

View File

@ -1,5 +1,4 @@
{{ $metas := dict "when" .context.Params.when "price" .context.Params.price "contact" .context.Params.contact "covid"
.context.Params.covid }}
{{ $metas := dict "when" .context.Params.when "price" .context.Params.price "contact_mail" .context.Params.contact_mail "covid" .context.Params.covid "insta" .context.Params.insta }}
{{ if eq .type "list" }}
{{ $metas = dict "when" .context.Params.when "price" .context.Params.price }}
{{ end }}
@ -16,29 +15,47 @@
{{ partial "snippets/article_metadata" $metas }}
<div class="articleinner">
{{- if and (.context.Resources.ByType "image") (eq .pic "true") -}}
{{ $resize := "500x" }}
{{- $img := index (.context.Resources.ByType "image") 0 -}}
{{- $thumb := index (.context.Resources.ByType "image") 0 -}}
{{ if ne .context.Content "" }}
{{- $resize = "2048x" }}
{{ else if eq .type "list" }}
{{- $resize = "500x" }}
{{ end }}
{{- $thumb = $img.Resize $resize }}
<div class="articlepicture {{ $pic }}" >
{{ if and (ne .type "list") (.context.Resources.ByType "image") }}<a href="{{- $img.Permalink -}}">{{ end }}
<img src="{{- $thumb.Permalink -}}" class="borderrad4px" />
{{ if and (ne .type "list") (.context.Resources.ByType "image") }}</a>{{ end }}
</div>
{{ end }}
{{- if or .context.Content .context.Summary -}}
<div class="articletext {{ $text }}">
{{ if eq .type "list" }}{{- .context.Summary -}}{{ else }}{{- .context.Content -}}{{ end }}
{{ if and .context.Truncated (eq .type "list") }}
<div class="readmore">{{- if i18n "readmore" -}}{{- i18n "readmore" -}}{{- else -}}{{- "readmore" -}}{{- end -}}..</div>
{{- if .context.Content -}}
{{- if and (.context.Resources.ByType "image") (eq .pic "true") -}}
{{ $resize := "500x" }}
{{- $img := index (.context.Resources.ByType "image") 0 -}}
{{- $thumb := index (.context.Resources.ByType "image") 0 -}}
{{ if ne .context.Content "" }}
{{- $resize = "2048x" }}
{{ else if eq .type "list" }}
{{- $resize = "300x" }}
{{ end }}
</div>
{{- $thumb = $img.Resize $resize }}
<div class="articlepicture {{ $pic }}" >
{{ if and (ne .type "list") (.context.Resources.ByType "image") }}<a href="{{- $img.Permalink -}}">{{ end }}
<img src="{{- $thumb.Permalink -}}" class="borderrad4px" />
{{ if and (ne .type "list") (.context.Resources.ByType "image") }}</a>{{ end }}
</div>
{{ end }}
{{- if or .context.Content .context.Summary -}}
<div class="articletext {{ $text }}">
{{ if eq .type "list" }}{{- .context.Summary -}}{{ else }}{{- .context.Content -}}{{ end }}
{{ if and .context.Truncated (eq .type "list") }}
<div class="readmore">{{- if i18n "readmore" -}}{{- i18n "readmore" -}}{{- else -}}{{- "readmore" -}}{{- end -}}..</div>
{{ end }}
</div>
{{- end }}
{{ else }}
{{ $type := .type }}
{{ if eq $type "article" }}
<div style="display:flex; flex-direction: column;">
{{ range .context.Resources.ByType "image" }}
{{ $img := . }}
{{ $thumb := $img.Resize "500x" }}
<a href="{{ $img.Permalink }}"><img src="{{ $thumb.Permalink }}" /></a>
{{- end }}
</div>
{{ else }}
{{- $img := index (.context.Resources.ByType "image") 0 -}}
{{ $thumb := $img.Resize "300x" }}
<img src="{{ $thumb.Permalink }}" />
{{ end }}
{{- end }}
</div>
@ -55,12 +72,16 @@
{{ $url = index site.Params.foundations $l }}
{{ end }}
{{- $res_im := resources.GetMatch (printf "/foundations/%s*" $l ) -}}
{{- $res_im := resources.GetMatch (printf "/images/foundations/%s*" $l ) -}}
{{ if $res_im }}
<div class="article_footer_item1">
{{ if $url }}<a href="{{ $url | safeHTML }}">{{ end }}<img src="{{- $res_im.Permalink -}}" class="borderrad4px article_footer_item1" /> {{ if $url }}</a>{{ end }}
</div>
{{ else }}
<div class="article_footer_item1">
assets/images/foundations/{{- $l -}} .* missing
</div>
{{ end }}
{{ end }}
</div>

View File

@ -1,33 +0,0 @@
{{ $small := "solo" }}
{{ $big := "solo" }}
{{ $img := "" }}
{{ $thumb := "" }}
{{- if .context.Resources.ByType "image" -}}
{{- $img = index (.context.Resources.ByType "image") 0 -}}
{{- $thumb = $img.Resize "1024x" }}
{{ if .content }}
{{- $thumb = $img.Resize "500x" }}
{{ end }}
{{ end }}
{{- if or (.context.Resources.ByType "image") (.context.Summary) ($img) -}}
{{ $small = "multiple_small" }}
{{ $big = "multiple_big" }}
{{ else }}
{{ $small = "multiple_big"}}
{{ end }}
<div id="articleinner">
{{ if and (ne $img "") (eq .pic true)}}
<div id="articlepicture" class="{{ $small }}">
{{ if and (ne .type "list") (.context.Resources.ByType "image") }}<a href="{{- $img.Permalink -}}">{{ end }}
<img src="{{- $thumb.Permalink -}}" class="borderrad4px" />
{{ if ne .type "list" }}</a>{{ end }}
{{ if eq .type "article" }}{{ end }}
</div>
{{ end }}
<div id="articletext" class="{{ $big }}">
{{ if .partial_before }}
{{ partial .partial_before (dict "context" .context "pic" .pic) }}
{{ end }}
{{ .content }}
</div>
</div>

View File

@ -60,16 +60,10 @@
{{ end }}
{{ end }}
{{ else if eq .title "foundations" }}
{{ range resources.Match "/foundations/*" }}
{{ range resources.Match "/images/foundations/*" }}
{{ $n := path.Base (strings.TrimSuffix (path.Ext .Name) .Name) }}
{{- $finale = $finale | append $n -}}
{{ end }}
{{ range $pages }}
{{- with .Params.foundations -}}
{{- $finale = $finale | append . -}}
{{ end }}
{{ end }}
{{ else }}
{{ range $pages }}
{{ range .Param $in0 }}
@ -104,70 +98,6 @@
</div>
{{ else if eq .input_type "rb" }}
{{ $in0 := .title }}
{{- $finale := slice -}}
{{ $pages := where site.RegularPages "Type" "in" site.Params.searchSections }}
{{ if eq .title "tags" }}
{{ range $pages }}
{{- with .Params.tags -}}
{{- $finale = $finale | append . -}}
{{ end }}
{{ end }}
{{ else if eq .title "foundations" }}
{{ range resources.Match "/foundations/*" }}
{{ $n := path.Base (strings.TrimSuffix (path.Ext .Name) .Name) }}
{{- $finale = $finale | append $n -}}
{{ end }}
{{ range $pages }}
{{- with .Params.foundations -}}
{{- $finale = $finale | append . -}}
{{ end }}
{{ end }}
{{ else }}
{{ range $pages }}
{{ range .Param $in0 }}
{{- $finale = $finale | append . -}}
{{ end }}
{{ end }}
{{ end }}
{{- $finale = $finale | uniq -}}
<div class="margin_top_1rem column {{- if .group }} visibleIf" data-visibleif-rule="{{ .group }}group == 'true'{{ end }}">
<div class="{{- if .group }}margin_left_1rem{{ end }}">
{{ .name }}
{{ if ne .expanded true }}{{ partial "layout/generator/expand" (dict "name" (printf "%scat" $in0)) }}{{ end }}{{- if .required -}}{{- " *" -}}{{- end -}}
</div>
<div class="checkbox {{ if ne .expanded true }}visibleIf margin_left_1rem stretch" data-visibleif-rule="{{ $in0 }}cat == 'true'{{end}}">
<div class="column margin_left_1rem">
<fieldset id="{{ $in0 }}" name="{{ $in0 }}" class="fieldset">
{{ range sort $finale }}
<input type="radio" name="{{ $in0 }}" id="{{ $in0 }}-cat" value="{{ . }}"><label for="{{ $in0 }}-cat">{{ . }}</label>
{{ end }}
</fieldset>
{{ if .new }}
<label id="id{{- .title -}}" for="new{{- .title -}}">{{ .new }} <span class="font_size_smaller">({{- $divide -}}{{- if .help -}}, {{ .help }}{{ end }})</span></label>
<input type="text" name="new{{- .title -}}" id="new{{- .title -}}" value="" {{ if .placeholder }}placeholder="{{ .placeholder }}"{{ end }} />
{{ end }}
</div>
</div>
</div>
{{ else }}
{{ if eq .title "name" }}
<div class="half {{- if .group }} visibleIf margin_left_1rem" data-visibleif-rule="{{ .group }}group == 'true'{{ end }}">

View File

@ -4,7 +4,7 @@
</section>
{{ end }}
<section>
{{ range .context.Resources.ByType "image" }}
<img src="{{ .Permalink }}" class="borderrad4px"/>
{{ range .context.Resources }}
<div>🗀 <a href="{{ .Permalink }}">{{ . }}</a></div>
{{ end }}
</section>

View File

@ -0,0 +1,6 @@
<article>
{{ $type := .type }}
{{ range .pages }}
<a href="{{ .Page.Permalink }}" style="margin-right: 1rem;">{{ .Page.Title }} {{ if eq $type "tags"}}{{ .Count }}{{ end }}</a>
{{ end }}
</article>

View File

@ -1,4 +1,4 @@
{{ if or .when .price .contact .covid }}
{{ if or .when .price .contact_mail .covid .insta }}
<div class="articlemeta font_size_smaller">
{{ if .when }}
@ -13,8 +13,11 @@
<div>{{ if i18n "entry" }}{{ i18n "entry" }}{{ else }}{{ "Entry" }}{{ end }}: {{ .price }}</div>
{{ end }}
{{ end }}
{{ if .contact }}
<div>{{ if i18n "contact" }}{{ i18n "contact" }}{{ else }}{{ "Contact" }}{{ end }} {{ .contact | markdownify }} {{ if i18n "or" }}{{ i18n "or" }}{{ else }}{{ "or" }}{{ end }} <a href="tel://{{ site.Params.imprintdata.tel }}">{{ site.Params.imprintdata.tel }}</a></div>
{{ if .insta }}
<div>Instagram: <a href="https://instagram.com/{{- .insta -}}">https://instagram.com/{{- .insta -}}</a></div>
{{ end }}
{{ if .contact_mail }}
<div>{{ if i18n "mail" }}{{ i18n "mail" }}{{ else }}{{ "mail" }}{{ end }} {{ .contact_mail | markdownify }}</div>
{{ end }}
{{ if .covid }}
<div>Covid: {{ .covid }}</div>

View File

@ -1,12 +0,0 @@
{{ partial "debug" (dict "context" .context "caller" "single_chooser.html")}}
{{ $partial_before := "" }}
{{ $partial := "layout/single/article" }}
{{ $pic := .pic }}
{{ if eq .context.Params.tool "generator" }}
{{ $partial = "layout/single/generator" }}
{{ else if eq .context.Params.tool "nottranslated" }}
{{ $partial = "layout/single/nottranslated" }}
{{ end }}
<article>
{{ partial $partial (dict "context" .context "pic" $pic "content" .context.Content "partial_before" $partial_before) }}
</article>

View File

@ -41,7 +41,8 @@ function showInput(e) {
var when = form.elements['when'].value;
var covid = form.elements['covid'].value;
var price = form.elements['price'].value;
var contact = form.elements['contact'].value;
var contact_mail = form.elements['contact_mail'].value;
var insta = form.elements['insta'].value;
var events = check_checkboxes('events');
if (form.elements['newevents']) { var newevents = testor(form.elements['newevents'].value.split(',')); }
var categories = check_checkboxes('categories');
@ -50,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(',')); }
@ -120,14 +122,9 @@ function showInput(e) {
if (!title) {
display.innerHTML += "Title is missing..<br>"
}
if (!content) {
display.innerHTML += "Content is missing..<br>"
}
if (title && content) {
if (title) {
display.innerHTML += "---<br>";
display.innerHTML += "title: \"" + title + "\"<br>";
@ -144,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>";
}
@ -170,8 +171,11 @@ function showInput(e) {
display.innerHTML += "price: \"" + price + "\"<br>";
}
if (contact) {
display.innerHTML += "contact: \"" + contact + "\"<br>";
if (contact_mail) {
display.innerHTML += "contact_mail: \"" + contact_mail + "\"<br>";
}
if (insta) {
display.innerHTML += "insta: \"" + insta + "\"<br>";
}
display.innerHTML += "---<br>";
if (content) {