small fixes
This commit is contained in:
parent
3bec9cb8a7
commit
980d591294
|
@ -0,0 +1 @@
|
||||||
|
|
|
@ -57,19 +57,28 @@
|
||||||
{{- if .Content -}}
|
{{- if .Content -}}
|
||||||
{{- $content -}}
|
{{- $content -}}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ if .Resources.ByType "image" }}
|
{{ $ignore := slice (.Page.Resources.GetMatch "banner*") }}
|
||||||
{{ range .Resources.ByType "image" }}
|
{{ $i := .Page.Resources }}
|
||||||
{{ $picname := . }}
|
{{ $files := complement $ignore $i }}
|
||||||
{{ if not (or (in $content $picname ) (hasPrefix $picname "banner") )}}
|
{{ if $files }}
|
||||||
<a href="{{- $picname.Permalink -}}" class="article_image no_underline">
|
<h3>Addendum</h3>
|
||||||
<img loading="lazy"
|
{{ range $files }}
|
||||||
src="{{ .Permalink }}"
|
{{ if not (in $content .) }}
|
||||||
alt="{{ . }}"
|
{{ if eq .MediaType.MainType "image" }}
|
||||||
{{ with .Title}} title="{{ . }}"{{ end }}
|
{{ $picname := . }}
|
||||||
width={{ $picname.Width }}
|
<a href="{{- $picname.Permalink -}}" class="no_underline">
|
||||||
height="{{ $picname.Height }}" /><br>
|
<img loading="lazy"
|
||||||
</a>
|
src="{{ .Permalink }}"
|
||||||
{{ end }}
|
alt="{{ . }}"
|
||||||
|
{{ with .Title}} title="{{ . }}"{{ end }}
|
||||||
|
width={{ $picname.Width }}
|
||||||
|
height="{{ $picname.Height }}" /><br>
|
||||||
|
</a>
|
||||||
|
{{ else }}
|
||||||
|
{{ $fname := . }}
|
||||||
|
<div>🗀 <a href="{{ $fname.Permalink }}" class="underline">{{ $fname }}</a></div>
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue