aboutsummaryrefslogtreecommitdiff
path: root/templates/page/now.gohtml
blob: 96c8b77036c87e37c0c7e483d3e289c37b9da34a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{{define "body"}}
    <main style="{{ .GetBackground }}">
        <div class="header">
            <h1 class="header__title">Now</h1>
            <nav>
                <a href="/">Home</a>
            </nav>
        </div>
        <div class="tags" style="{{ .Color.GetTagColor }}">
            {{ range $now := .Person.Now }}
                <div class="tag">
                    {{ if ne .Name "" }}
                        <h4>{{ .Name }}</h4>
                    {{ end }}
                    <p>{{ .Description }}</p>
                    {{ if and (ne .Link "") (ne .LinkName "") }}
                        <p><a href="{{ .Link }}">{{ .LinkName }}</a></p>
                    {{ end }}
                </div>
            {{ end }}
        </div>
    </main>
{{end}}