many changes

This commit is contained in:
teldra 2022-04-28 18:11:33 +02:00
parent d5ce174908
commit 305fa5e175
6 changed files with 7 additions and 7 deletions

View File

Before

Width:  |  Height:  |  Size: 43 KiB

After

Width:  |  Height:  |  Size: 43 KiB

View File

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

View File

@ -80,7 +80,7 @@ forms:
name: "Stiftungen" name: "Stiftungen"
expanded: false expanded: false
new: "Neue Stiftung" new: "Neue Stiftung"
help: "es muss ein Bild in assets/foundations mit dem gleichen Namen hinterlegt werden" help: "es muss ein Bild in assets/images/foundations mit dem gleichen Namen hinterlegt werden"
- title: tags - title: tags
group: misc group: misc
input_type: mc input_type: mc

View File

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

View File

@ -73,14 +73,14 @@
{{ end }} {{ end }}
{{- $res_im := resources.GetMatch (printf "/foundations/%s*" $l ) -}} {{- $res_im := resources.GetMatch (printf "/images/foundations/%s*" $l ) -}}
{{ if $res_im }} {{ if $res_im }}
<div class="article_footer_item1"> <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 }} {{ if $url }}<a href="{{ $url | safeHTML }}">{{ end }}<img src="{{- $res_im.Permalink -}}" class="borderrad4px article_footer_item1" /> {{ if $url }}</a>{{ end }}
</div> </div>
{{ else }} {{ else }}
<div class="article_footer_item1"> <div class="article_footer_item1">
assets/foundations/{{- $l -}} .* missing assets/images/foundations/{{- $l -}} .* missing
</div> </div>
{{ end }} {{ end }}
{{ end }} {{ end }}

View File

@ -60,7 +60,7 @@
{{ end }} {{ end }}
{{ end }} {{ end }}
{{ else if eq .title "foundations" }} {{ else if eq .title "foundations" }}
{{ range resources.Match "/foundations/*" }} {{ range resources.Match "/images/foundations/*" }}
{{ $n := path.Base (strings.TrimSuffix (path.Ext .Name) .Name) }} {{ $n := path.Base (strings.TrimSuffix (path.Ext .Name) .Name) }}
{{- $finale = $finale | append $n -}} {{- $finale = $finale | append $n -}}
{{ end }} {{ end }}