many changes

This commit is contained in:
teldra 2022-04-28 17:39:10 +02:00
parent 5ca360f4a8
commit d748b4c0b6
17 changed files with 62 additions and 115 deletions

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"

View File

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

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

@ -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

@ -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

@ -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

@ -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

@ -36,11 +36,16 @@ 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: events
group: events
input_type: mc
@ -58,7 +63,7 @@ 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
@ -83,6 +88,7 @@ forms:
name: "Stiftungen"
expanded: false
new: "Neue Stiftung"
help: "es muss ein Bild in assets/foundations mit dem gleichen Namen hinterlegt werden"
- title: results
input_type: results
- title: submit

View File

Before

Width:  |  Height:  |  Size: 27 KiB

After

Width:  |  Height:  |  Size: 27 KiB

View File

@ -15,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>

View File

@ -64,12 +64,6 @@
{{ $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

@ -1,6 +1,6 @@
<article>
{{ $type := .type }}
{{ range .pages }}
<a href="{{ .Page.Permalink }}">{{ .Page.Title }}</a> {{ if eq $type "taxonomy"}}{{ .Count }}{{ end }}
<a href="{{ .Page.Permalink }}" style="margin-right: 1rem;">{{ .Page.Title }} {{ if eq $type "tags"}}{{ .Count }}{{ end }}</a>
{{ end }}
</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');
@ -120,14 +121,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>";
@ -170,8 +166,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) {