blob: 99eb93ab61aedf97017b4742f0f8d6a48becb511 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
{{ define "hero" }}
<div
style="background: linear-gradient( rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.15) ){{ with resources.Get (index .Params.images 0) }}
, url('{{ .RelPermalink }}')
{{ end }}; background-position: center;"
class="pv5"
>
<div id="hero" class="mw7 center ph2 near-white lh-copy tc">
<img src="{{ .Site.Author.avatar }}" class="br-100" />
<h1 class="f1 mv1">{{ .Site.Author.name }}</h1>
<h2 class="f3 fw3 pa0 ma0">{{ .Site.Author.role }}</h2>
<div class="f2">
{{ partial "social_links" . }}
</div>
</div>
</div>
{{ end }}
{{ define "main" }}
<div class="stripe-dark"></div>
{{ range .Paginator.Pages }}
<div class="stripe-dark">
<div class="mw7 center pv2 lh-copy f4-ns ph1">
<h2
id="{{ anchorize .Title | safeURL }}"
class="baskerville lh-title f2"
>
{{ .Title }}
</h2>
{{ with .Content }}
<div class="main-content">{{ . }}</div>
{{ end }}
{{ range where site.RegularPages "Type" "eq" .Params.subsection }}
{{ partial "post.html" . }}
{{ end }}
</div>
</div>
{{ end }}
{{ end }}
|