FIX avatar image CHANGE class names

This commit is contained in:
Hoernschen 2024-01-14 12:16:30 +01:00
parent 87d8c05eb2
commit ec90ac9b77
Signed by: hoernschen
GPG key ID: 37591FAF4E6D3462
3 changed files with 24 additions and 20 deletions

View file

@ -5,7 +5,6 @@ alt: string
width: int
height: int
-->
{{ $avatar := "avatar"}}
{{ $sizes := slice "320" "640" "960" "1280" }}
{{ $ext := path.Ext .url }}
{{ $name := path.Base (replace .url $ext "") }}
@ -31,7 +30,7 @@ height: int
"
/>
<img
class="{{if eq .type $avatar}}avatar{{end}}"
class="{{ .type }}"
width="{{ .width }}"
height="{{ .height }}"
srcset="

View file

@ -10,11 +10,13 @@ hero:
content: string
-->
<div id="{{ .id }}" class="section {{if eq .odd 0}} section-even {{end}} row">
<div class="section-content hero">
<div class="content hero">
{{ with .hero }}
<div class="hero-content">
<div class="content">
{{ if .avatar }}
{{ partial "components/image.html" .avatar }}
<div class="image">
{{ partial "components/image.html" .avatar }}
</div>
{{ end }}
<div>
<h1>{{ .greeting }}</h1>