2023-12-23 23:01:53 +00:00
|
|
|
<!--
|
|
|
|
id: string
|
|
|
|
odd: 0 or 1
|
|
|
|
hero:
|
|
|
|
avatar: image
|
|
|
|
greeting: string
|
2024-01-06 19:44:35 +00:00
|
|
|
social: icon
|
2023-12-23 23:01:53 +00:00
|
|
|
type: string
|
|
|
|
url: string
|
|
|
|
content: string
|
|
|
|
-->
|
2024-01-14 11:44:43 +00:00
|
|
|
<div id="{{ .id }}" class="section {{if eq .odd 0}} even {{end}} row">
|
2024-01-14 11:16:30 +00:00
|
|
|
<div class="content hero">
|
2023-12-23 23:01:53 +00:00
|
|
|
{{ with .hero }}
|
2024-01-14 11:16:30 +00:00
|
|
|
<div class="content">
|
2023-12-23 23:01:53 +00:00
|
|
|
{{ if .avatar }}
|
2024-01-14 11:16:30 +00:00
|
|
|
<div class="image">
|
|
|
|
{{ partial "components/image.html" .avatar }}
|
|
|
|
</div>
|
2023-12-23 23:01:53 +00:00
|
|
|
{{ end }}
|
|
|
|
<div>
|
|
|
|
<h1>{{ .greeting }}</h1>
|
|
|
|
<h3>{{ .introduction }}</h3>
|
2024-01-06 19:44:35 +00:00
|
|
|
{{ if .social }}
|
|
|
|
<div class="social">
|
|
|
|
{{ range .social }}
|
|
|
|
{{ partial "components/icon.html" . }}
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
2023-12-23 23:01:53 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
{{ with .content }}
|
|
|
|
<div class="description">
|
|
|
|
{{ . }}
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
</div>
|