aboutsummaryrefslogtreecommitdiff
path: root/templates/page/index.gohtml
blob: cfb90eda737e9d0997a8cc9ef53e12ae10216001 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{{define "body"}}
    <main style="{{ .GetBackground }}{{ .GetTextColor }}">
        <div class="presentation">
            <figure>
                <img src="{{ getStaticPath .Person.Image }}" alt="{{ .Person.Name }}'s image">
            </figure>
            <div class="presentation__information">
                <h2>{{ .Person.Name }}</h2>
                <p>{{ .Person.Pronouns }}</p>
            </div>
        </div>
        <p class="description">{{ .Description }}</p>
        <div class="links">
            {{ range $link := .Links }}
            <div class="link" style="{{ .GetBackground }}">
                <a href="{{ .Link }}" style="{{ .GetLinkColor }}">{{ .Content }}</a>
            </div>
            {{end}}
        </div>
    </main>
{{end}}