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="
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue