forked from Bunteshaus/bunteshaus.de
small fixes
This commit is contained in:
parent
cf3425a5e9
commit
1452ba6c33
|
@ -15,15 +15,14 @@ forms:
|
|||
name: "Titel"
|
||||
required: true
|
||||
placeholder: "Die Überschrift des Artikels"
|
||||
- title: description
|
||||
input_type: text
|
||||
name: "Beschreibung"
|
||||
placeholder: "Kurze Beschreibung mit ca. 30-60 Worten."
|
||||
- title: summary
|
||||
group: summary
|
||||
input_type: textarea
|
||||
name: "Zusammenfassung"
|
||||
expanded: true
|
||||
buttons: "headline,Überschrift;url,URL;pic,Bild;bold,Fett;paragraph,Absatz;newline,Neue Zeile"
|
||||
placeholder: "Dieser Absatz wird die Zusammenfassung in Artikelübersichten. Denke an die Formatierungshilfe hinter dem Link oben."
|
||||
placeholder: "Der erste Absatz des Artkels. Eine Zusammenfassung des Inhalts. Gerne einladend reisserisch. Denke an die Formatierungshilfe hinter dem Link oben."
|
||||
help: ""
|
||||
- title: content
|
||||
input_type: textarea
|
||||
name: "Inhalt"
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 146 KiB |
|
@ -12,19 +12,9 @@ covid: "Keine Masken mehr!"
|
|||
Endlich wieder nach langer Covidauszeit sind die Kitten von Katzengejammer wieder am Start. Sie werden euch einen unvergesslichen Abend voller Katzengejammer bieten.
|
||||
Katzengejammer sind seit Jahren der Renner um alle Mäuse aus der Küche zu vertreiben und zum dancen im Gemüsebeet zu bewegen.
|
||||
Bier kostet 3 Euro, jedoch ist die Katzenmilch für euch umsonst. Bringt alle eure Hunde mit es wird ein Fest.
|
||||
```goat
|
||||
. . . Brot .--- 1 .-- 1 / 1
|
||||
/ \ | | .-------+ .-+ +
|
||||
B / \ A .---+-->--.---. .--+--. | '--- 2 | '-- 2 / \ 2
|
||||
+ + | | | | | ---+ ---+ +
|
||||
/ \ / \ .-----+---+---. | +-+-+ .+. .+. | .--- 3 | .-- 3 \ / 3
|
||||
/ \ / \ | | +-+-+ | | | | '-------+ '-+ +
|
||||
1 2 3 4 Schnuppel 2 3 4 1 2 3 4 '--- 4 '-- 4 \ 4
|
||||
|
||||
```
|
||||
![lala](1)
|
||||
|
||||
![lala](2)
|
||||
|
||||
![lala](3)
|
||||
|
||||
Das letzte Bild wird einfach drangehängt:
|
||||
|
|
|
@ -14,9 +14,9 @@ Spenden? Mitmachen? Wer **mitmachen** oder uns unterstützen möchte, kann sich
|
|||
|
||||
<!--more-->
|
||||
|
||||
### Pressemitteilung 12. Mai 2020
|
||||
## Pressemitteilung 12. Mai 2020
|
||||
|
||||
#### Food-Saving macht weitere Verteilungen
|
||||
### Food-Saving macht weitere Verteilungen
|
||||
|
||||
Die Initiative "Foodsaving Celle" hat sich ein neues Verteilkonzept überlegt. Nachdem die Tafel wieder geöffnet und damit die Häufigkeit und Menge der Lebensmittelspenden sich auch verringert hat, geht es trotzdem weiter mit öffentlichen Lebensmittelausgaben.
|
||||
|
||||
|
@ -34,7 +34,7 @@ Es gibt jetzt keine vorgepackten Taschen mehr. Die Lebensmittelausgabe erfolgt u
|
|||
|
||||
![Zeitungsrtikel](1)
|
||||
|
||||
### Pressemitteilung vom 27. März 2020:
|
||||
## Pressemitteilung vom 27. März 2020:
|
||||
|
||||
Die Celler Tafel, soziale Treffs und Hilfseinrichtungen haben geschlossen. Menschen verlieren ihren Lohn, ihre Arbeit, können Miete und Essen nicht bezahlen – gleichzeitig werden immer noch Unmengen an Lebensmitteln weggeschmissen.
|
||||
|
||||
|
|
|
@ -1,10 +1,20 @@
|
|||
article {
|
||||
.article-image, .article-image > a {
|
||||
.article-image {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
margin-bottom: 1.5rem;
|
||||
img {
|
||||
width: 65vw;
|
||||
}
|
||||
&> a {
|
||||
display: inherit;
|
||||
justify-content: inherit;
|
||||
flex-direction: inherit;
|
||||
align-items: inherit;
|
||||
margin-bottom: inherit;
|
||||
}
|
||||
}
|
||||
.articlemeta {
|
||||
margin-top: 1rem;
|
||||
|
@ -12,16 +22,24 @@ article {
|
|||
&:first-child {
|
||||
font-weight: bold;
|
||||
}
|
||||
a {
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
p {
|
||||
margin-top: 2rem;
|
||||
margin-bottom: 2rem;
|
||||
a {
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
.toc {
|
||||
padding-left: 0;
|
||||
padding-bottom: .4rem;
|
||||
margin-top: 1rem;
|
||||
.toc-head {
|
||||
margin-top: 1rem;
|
||||
margin-right: 1rem;
|
||||
margin-bottom: 1rem;
|
||||
margin-left: 0;
|
||||
font-size: 1.35rem;
|
||||
}
|
||||
ul { padding-left: 0;}
|
||||
li { list-style: none; margin-bottom: .1rem; margin-left: 1rem;}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -18,26 +18,60 @@
|
|||
{{ $thumb = $image}}
|
||||
{{ end }}
|
||||
|
||||
|
||||
{{ $summary := "" }}
|
||||
{{ $content := .context.Content }}
|
||||
{{ if in .context.RawContent "<!--more-->" }}
|
||||
{{ $tmp := split .context.RawContent "<!--more-->" }}
|
||||
{{ $summary = index $tmp 0 | markdownify }}
|
||||
{{ $content = index $tmp 1 | markdownify }}
|
||||
{{ end }}
|
||||
|
||||
|
||||
{{ partial "snippets/article_metadata" $metas }}
|
||||
|
||||
{{- if .context.Description -}}
|
||||
<p>{{ .context.Description }}</p>
|
||||
{{ end }}
|
||||
|
||||
{{- if .context.Content -}}
|
||||
<div class="article_content">{{- .context.Content -}}</div>
|
||||
{{ else if .context.Resources.ByType "image" }}
|
||||
{{ range .context.Resources.ByType "image" }}
|
||||
<a href="{{- $image.Permalink -}}" class="no_underline">
|
||||
<img loading="lazy"
|
||||
src="{{ .Permalink }}"
|
||||
alt="{{ . }}"
|
||||
{{ with .Title}} title="{{ . }}"{{ end }}
|
||||
width={{ $image.Width }}
|
||||
height="{{ $image.Height }}" />
|
||||
<div>{{ . }}</div>
|
||||
</a>
|
||||
{{ end }}
|
||||
{{- if $summary -}}
|
||||
<p>{{ $summary }}</p>
|
||||
{{ end }}
|
||||
|
||||
{{ $count_href := .context.TableOfContents | strings.Count "href" }}
|
||||
{{ if ge $count_href 4 }}
|
||||
<div class="toc">
|
||||
<div class="toc-head">Inhaltsverzeichnis</div>
|
||||
{{ .context.TableOfContents }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
|
||||
|
||||
{{ if or $content (.context.Resources.ByType "image")}}
|
||||
<div class="article_content">
|
||||
{{- if $content -}}
|
||||
{{- $content -}}
|
||||
{{ end }}
|
||||
{{ if .context.Resources.ByType "image" }}
|
||||
{{ range .context.Resources.ByType "image" }}
|
||||
{{ $picname := . }}
|
||||
{{ if not (or (in $content $picname ) (hasPrefix $picname "banner") )}}
|
||||
<div class="article-image">
|
||||
<a href="{{- $image.Permalink -}}" class="no_underline">
|
||||
<img loading="lazy"
|
||||
src="{{ .Permalink }}"
|
||||
alt="{{ . }}"
|
||||
{{ with .Title}} title="{{ . }}"{{ end }}
|
||||
width={{ $image.Width }}
|
||||
height="{{ $image.Height }}" />
|
||||
<div>{{ . }}</div>
|
||||
</a>
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
|
||||
|
|
|
@ -25,16 +25,18 @@
|
|||
{{ else if eq .input_type "title" }}
|
||||
<h3 {{ if .group }}class="visibleIf margin_left_1rem" data-visibleif-rule="{{ .group }}group == 'true'"{{ end }}>{{- $name -}}{{- if .required -}}{{- " *" -}}{{- end -}}</h3>
|
||||
{{ else if eq .input_type "textarea" }}
|
||||
<div class="w100 {{ if .group }} visibleIf margin_left_1rem" data-visibleif-rule="{{ .group }}group == 'true' {{ end }}">
|
||||
<div class="w100 {{ if .group }} visibleIf margin_left_1rem" data-visibleif-rule="{{ .group }}group == 'true' {{ end }}" style="flex-direction: column;">
|
||||
<label class="w100 {{ if $pageform.names }}sr-only{{ end }}" for="{{ .title }}">{{- $name -}}{{- if .required -}}{{- " *" -}}{{- end -}}</label>
|
||||
{{ $button_target := .title }}
|
||||
{{ range split .buttons ";"}}
|
||||
{{ $b := split . ","}}
|
||||
{{ $translation := index $b 1 }}
|
||||
{{ $n := index $b 0 }}
|
||||
{{ $nn := printf "%s;%s" $button_target $n}}
|
||||
<button class="button" onclick="button({{- $nn -}})" type="button" value="{{ $n }}">{{ $translation }}</button>
|
||||
{{ end }}
|
||||
<div style="display: flex; flex-wrap: wrap;">
|
||||
{{ $button_target := .title }}
|
||||
{{ range split .buttons ";"}}
|
||||
{{ $b := split . ","}}
|
||||
{{ $translation := index $b 1 }}
|
||||
{{ $n := index $b 0 }}
|
||||
{{ $nn := printf "%s;%s" $button_target $n}}
|
||||
<button class="button" onclick="button({{- $nn -}})" type="button" value="{{ $n }}">{{ $translation }}</button>
|
||||
{{ end }}
|
||||
</div>
|
||||
<textarea class="w100" name="{{ .title }}" id="{{ .title }}" rows="10" {{ if .placeholder }}placeholder="{{ .placeholder }}"{{ end }}></textarea>
|
||||
</div>
|
||||
{{ else if eq .input_type "radio" }}
|
||||
|
|
|
@ -97,7 +97,6 @@ function showInput(e) {
|
|||
|
||||
var form = document.querySelector('form[id="generatorform"]');
|
||||
var title = form.elements['title'].value;
|
||||
var description = form.elements['description'].value;
|
||||
var summary = form.elements['summary'].value;
|
||||
var content = form.elements['content'].value;
|
||||
var when = form.elements['when'].value;
|
||||
|
@ -194,9 +193,6 @@ function showInput(e) {
|
|||
} else {
|
||||
display.innerHTML += "date: " + datestring.trim() + "<br>";
|
||||
}
|
||||
if (description) {
|
||||
display.innerHTML += "description: \"" + description.trim() + "\"<br>";
|
||||
}
|
||||
|
||||
if (featured != '') {
|
||||
display.innerHTML += "featured: true<br>";
|
||||
|
|
Loading…
Reference in New Issue