FIX avatar image CHANGE class names
This commit is contained in:
parent
87d8c05eb2
commit
ec90ac9b77
3 changed files with 24 additions and 20 deletions
|
@ -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="
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue