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"]
page = ["HTML"]
taxonomy = ["HTML", "RSS"]
term = ["HTML", "RSS"]
term = ["HTML"]

View File

@ -80,7 +80,7 @@ forms:
name: "Stiftungen"
expanded: false
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
group: misc
input_type: mc

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

@ -73,14 +73,14 @@
{{ 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/foundations/{{- $l -}} .* missing
assets/images/foundations/{{- $l -}} .* missing
</div>
{{ end }}
{{ end }}

View File

@ -60,7 +60,7 @@
{{ 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 }}