FIX display of content and image of posts in list and single, FIX team list display
This commit is contained in:
parent
e21c1e2182
commit
58274050ef
8 changed files with 100 additions and 89 deletions
|
@ -1,6 +1,9 @@
|
|||
{{ define "main" }}
|
||||
{{ with .Params.image }}
|
||||
{{ $style := "coverimage {{if ne .Params.image.cover }} noCover {{ end }}" }}
|
||||
{{ $style := "coverimage" }}
|
||||
{{ if .cover }}
|
||||
{{ $style = "coverimage cover" }}
|
||||
{{ end }}
|
||||
{{- partial "components/image.html" (dict "style" $style "url" .url "alt" .alt) -}}
|
||||
{{ with .copyright }}
|
||||
<div class="image-copyright">© {{ . }}</div>
|
||||
|
@ -38,7 +41,7 @@
|
|||
{{ partial "components/icon.html" . }}
|
||||
{{- end}}
|
||||
{{if .Params.mail}}
|
||||
{{ partial "components/icon.html" (dict "type" "at" "url" "mailto:{{ .Params.mail }}") }}
|
||||
{{ partial "components/icon.html" (dict "type" "at" "url" (printf "mailto:%s" .Params.mail) ) }}
|
||||
{{end}}
|
||||
</span>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue