WIP: start page with header
This commit is contained in:
parent
9d834470a6
commit
06b0b4d643
18 changed files with 1683 additions and 9 deletions
31
layouts/partials/hero.html
Normal file
31
layouts/partials/hero.html
Normal file
|
@ -0,0 +1,31 @@
|
|||
<!--
|
||||
id: string
|
||||
odd: 0 or 1
|
||||
hero:
|
||||
avatar: image
|
||||
greeting: string
|
||||
social: array
|
||||
type: string
|
||||
url: string
|
||||
content: string
|
||||
-->
|
||||
<div id="{{ .id }}" class="section {{if eq .odd 0}} section-even {{end}} row">
|
||||
<div class="section-content hero">
|
||||
{{ with .hero }}
|
||||
<div class="hero-content">
|
||||
{{ if .avatar }}
|
||||
{{ partial "components/image.html" .avatar }}
|
||||
{{ end }}
|
||||
<div>
|
||||
<h1>{{ .greeting }}</h1>
|
||||
<h3>{{ .introduction }}</h3>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ with .content }}
|
||||
<div class="description">
|
||||
{{ . }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue