small fixes

This commit is contained in:
teldra 2022-03-27 00:05:47 +01:00
parent fccd469477
commit c84ffaa1dd
6 changed files with 146 additions and 105 deletions

1
.gitignore vendored
View File

@ -2,3 +2,4 @@ public
/resources/ /resources/
/public/ /public/
.hugo_build.lock .hugo_build.lock
hugo_start.sh

View File

@ -3,8 +3,9 @@ title: "Food Saving"
date: "2021-02-04T19:00:00+02:00" date: "2021-02-04T19:00:00+02:00"
when: "Jeden Mittwoch 18:30-19:00Uhr & Samstags 15:00-15:30Uhr" when: "Jeden Mittwoch 18:30-19:00Uhr & Samstags 15:00-15:30Uhr"
recurrent: true recurrent: true
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 an foodsavingcelle@riseup.net wenden, sodass wir bei Bedarf nachfragen können. 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.
<!--more--> <!--more-->
Pressemitteilung 12. Mai 2020 Pressemitteilung 12. Mai 2020

View File

@ -14,8 +14,8 @@
} }
main h1 { main h1 {
margin-top: .2rem; margin-top: 1rem;
margin-bottom: .2rem; margin-bottom: 0rem;
} }
.right-sidebar { .right-sidebar {
@ -72,6 +72,10 @@ article p:first-child {
margin: 0; margin: 0;
} }
article #readmore {
margin-top: 1rem;
}
#nav-posts { #nav-posts {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@ -82,16 +86,43 @@ article p:first-child {
margin-left: .5rem; margin-left: .5rem;
} }
article {
display: flex;
flex-direction: column;
margin-bottom: 1rem;
padding: 1rem;
}
article h2 {
margin: 0;
}
#articlemeta {
margin-bottom: 1rem;
}
#articlecontent { #articlecontent {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
} }
#articleimage {
margin-top: 1rem;
}
#articledata { #articledata {
display: flex; display: flex;
flex-direction: column-reverse; flex-direction: column-reverse;
} }
.articlebgcol1 {
background-color: var(--background);
}
#readmore {
margin-bottom: 1rem;
}
/* Extra small devices (phones, 600px and down) */ /* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {...} @media only screen and (max-width: 600px) {...}
@ -131,13 +162,19 @@ article p:first-child {
flex-direction: row; flex-direction: row;
} }
#articletext { #articleimage {
margin-top: -1.3rem; margin-top: .5rem;
display: flex;
flex-direction: column;
flex-shrink: 0;
margin-right: 1rem;
max-width: 15rem;
min-width: 1rem;
height: 100%;
} }
#articleimage { .borderrad25 {
margin-right: 1rem; border-radius: 25px;
width: 30rem;
} }
} }

View File

@ -16,48 +16,47 @@
{{- $paginator = .Paginate .RegularPagesRecursive.ByLastmod.Reverse -}} {{- $paginator = .Paginate .RegularPagesRecursive.ByLastmod.Reverse -}}
{{- end -}} {{- end -}}
{{- range first 5 $paginator.Pages -}} {{- range first 5 $paginator.Pages -}}
<article> <article class="articlebgcol1 borderrad25"><a href="{{- .Permalink -}}">
<a href="{{- .Permalink -}}"> <div id="articletitle">
<h2>{{- .Title -}}</h2> <h2>{{- .Title -}}</h2>
{{ if .Params.when }} </div>
<div style="margin-bottom: .4em;"><b>{{ .Params.when }}</b></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>
{{ 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 ne .Params.price nil }} {{ end }}
{{ if eq .Params.price "free" }} </div>
<div style="margin-bottom: .4em;">Der Eintritt ist frei.</div> <div id="articleinner">
{{ else }} <div id="articledata">
<div style="margin-bottom: .4em;">Eintritt: {{ .Params.price }}</div> {{- if .Resources.ByType "image" -}}
{{ end }} <div id="articleimage">
{{ end }} {{- $pic := index (.Resources.ByType "image") 0 -}}
{{ if ne .Params.register nil }} {{- $thumb := $pic.Resize "1024x" }}
<div>Anmeldung unter {{ .Params.register }} erwünscht</div> <img src="{{- $thumb.Permalink -}}"/>
{{ end }}
{{ if ne .Params.covid nil }}
<div>Es gilt die {{ .Params.covid }} Regel</div>
{{ end }}
<div id="articledata">
{{- if ne .Section .Site.Params.hiddenfolder -}}
{{- if .Resources.ByType "image" -}}
<div id="articleimage">
{{- $pic := index (.Resources.ByType "image") 0 -}}
{{- $thumb := $pic.Resize "1024x" }}
<img src="{{- $thumb.Permalink -}}"/>
</div>
{{- end }}
<div id="articletext">
{{- if .Params.description -}}
{{- .Params.description | plainify -}}
{{- else -}}
{{- .Summary | plainify -}}
{{- end }}
{{ if .Truncated }}
<div id="readmore">{{- i18n "readmore" -}}..</div>
{{ end }}
</div> </div>
</div> {{- end }}
{{- end -}} <div id="articletext">
</a> {{- if .Params.description -}}
</article> {{- .Params.description -}}
{{- else -}}
{{- .Summary -}}
{{- end }}
{{ if .Truncated }}
<div id="readmore">{{- i18n "readmore" -}}..</div>
{{ end }}
</div>
</div>
</div>
</div>
</a></article>
{{- end }} {{- end }}
<div id="pagination"> <div id="pagination">
<!-- Number of links either side of the current page. --> <!-- Number of links either side of the current page. -->

View File

@ -9,41 +9,46 @@
<div id="articletitle"> <div id="articletitle">
<h1>{{- .Title -}}</h1> <h1>{{- .Title -}}</h1>
</div> </div>
<article>
<div id="articlecontent"> <div id="articlecontent">
<div id="articlemeta"> <div id="articlemeta">
{{ if and (ne .Params.when "") (ne .Params.when nil) }} {{ if and (ne .Params.when "") (ne .Params.when nil) }}
<div style="margin-bottom: .4em;"><b>{{ .Params.when }}</b></div> <div style="margin-bottom: .4em;"><b>{{ .Params.when }}</b></div>
{{ end }} {{ end }}
{{ if and (ne .Params.price "") (ne .Params.price nil) }} {{ if and (ne .Params.price "") (ne .Params.price nil) }}
{{ if eq .Params.price "free" }} {{ if eq .Params.price "free" }}
<div style="margin-bottom: .4em;">Der Eintritt ist frei.</div> <div style="margin-bottom: .4em;">Der Eintritt ist frei.</div>
{{ else }} {{ else }}
<div style="margin-bottom: .4em;">Eintritt: {{ .Params.price }}</div> <div style="margin-bottom: .4em;">Eintritt: {{ .Params.price }}</div>
{{ end }} {{ end }}
{{ end }} {{ end }}
{{ if and (ne .Params.register "") (ne .Params.register nil) }} {{ if and (ne .Params.register "") (ne .Params.register nil) }}
<div>Anmeldung unter {{ .Params.register | markdownify }} erwünscht</div> <div>Anmeldung unter {{ .Params.register | markdownify }} erwünscht</div>
{{ end }} {{ end }}
{{ if and (ne .Params.covid "") (ne .Params.covid nil) }} {{ if and (ne .Params.covid "") (ne .Params.covid nil) }}
<div>Es gilt die {{ .Params.covid }} Regel</div> <div>Es gilt die {{ .Params.covid }} Regel</div>
{{ end }} {{ end }}
{{ if and (ne .Params.contact "") (ne .Params.contact nil) }}
<div>Kontakt: <a href="mailto://{{ .Params.contact }}">{{ .Params.contact }}</a></div>
{{ end }}
</div> </div>
<div id="articleinner"> <div id="articleinner">
<div id="articledata"> <div id="articledata">
{{- if .Resources.ByType "image" -}} {{- if .Resources.ByType "image" -}}
<div id="articleimage"> <div id="articleimage">
{{ range .Resources.ByType "image" }} {{ range .Resources.ByType "image" }}
{{- $pic := . -}} {{- $pic := . -}}
{{- $thumb := $pic.Resize "1024x" }} {{- $thumb := $pic.Resize "1024x" }}
<a href="{{ . }}"><img src="{{- $thumb.Permalink -}}"/></a> <a href="{{ . }}"><img src="{{- $thumb.Permalink -}}"/></a>
{{ end }} {{ end }}
</div> </div>
{{- end }} {{- end }}
<div id="articletext"> <div id="articletext">
{{- .Content -}} {{- .Content -}}
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</article>
{{ end }} {{ end }}
{{ end }} {{ end }}

View File

@ -12,49 +12,47 @@
{{- $paginator := slice -}} {{- $paginator := slice -}}
{{- $paginator = .Paginate $posts.ByLastmod.Reverse -}} {{- $paginator = .Paginate $posts.ByLastmod.Reverse -}}
{{- range first 5 $paginator.Pages -}} {{- range first 5 $paginator.Pages -}}
<article> <article class="articlebgcol1 borderrad25"><a href="{{- .Permalink -}}">
<a href="{{- .Permalink -}}"> <div id="articletitle">
<h2>{{ if and (isset .Params "categories") (eq .Section "events") }}{{ index .Params.categories 0 }}: {{ end }}{{- .Title -}}</h2> <h2>{{- .Title -}}</h2>
{{ if .Params.when }} </div>
<div style="margin-bottom: .4em;"><b>{{ .Params.when }}</b></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>
{{ 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 ne .Params.price nil }} {{ end }}
{{ if eq .Params.price "free" }} </div>
<div style="margin-bottom: .4em;">Der Eintritt ist frei.</div> <div id="articleinner">
{{ else }} <div id="articledata">
<div style="margin-bottom: .4em;">Eintritt: {{ .Params.price }}</div> {{- if .Resources.ByType "image" -}}
{{ end }} <div id="articleimage">
{{ end }} {{- $pic := index (.Resources.ByType "image") 0 -}}
{{ if ne .Params.register nil }} {{- $thumb := $pic.Resize "1024x" }}
<div>Anmeldung unter {{ .Params.register }} erwünscht</div> <img src="{{- $thumb.Permalink -}}"/>
{{ end }}
{{ if ne .Params.covid nil }}
<div>Es gilt die {{ .Params.covid }} Regel</div>
{{ end }}
<div id="articledata">
{{- if ne .Section .Site.Params.hiddenfolder -}}
{{- if .Resources.ByType "image" -}}
<div id="articleimage">
{{- $pic := index (.Resources.ByType "image") 0 -}}
{{- $thumb := $pic.Resize "1024x" }}
<img src="{{- $thumb.Permalink -}}"/>
</div>
{{- end }}
<div id="articletext">
{{- if .Params.description -}}
{{- .Params.description | plainify -}}
{{- else -}}
{{- .Summary | plainify -}}
{{- end }}
{{ if .Truncated }}
<div id="readmore">{{- i18n "readmore" -}}..</div>
{{ end }}
</div> </div>
{{- end }}
<div id="articletext">
{{- if .Params.description -}}
{{- .Params.description -}}
{{- else -}}
{{- .Summary -}}
{{- end }}
{{ if .Truncated }}
<div id="readmore">{{- i18n "readmore" -}}..</div>
{{ end }}
</div> </div>
{{- end -}} </div>
</a> </div>
</article> </div>
{{- end }} </a></article>
{{- end }}
<div id="pagination"> <div id="pagination">
<!-- Number of links either side of the current page. --> <!-- Number of links either side of the current page. -->
{{ $adjacent_links := 2 }} {{ $adjacent_links := 2 }}