blob: 3d759156f0664c5d1124474cca57595cde112977 (
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
41
42
|
{{ define "main" }}
<article class="mw7 center ph2">
<header>
<h2 class="baskerville f2 lh-title mv3">
{{ .Title }}
</h2>
{{ with .Params.subtitle }}
<h3 class="f3 baskerville mv3">{{ . }}</h3>
{{end}}
{{ if isset .Params "image" }}
{{ $image := resources.Get .Params.image }}
{{ $image := $image.Fill (default "400x400" .Params.image_size) }}
<div class="relative">
<img src="{{ $image.RelPermalink }}" class="db center" alt= "{{ .Title }}">
{{ with .Params.caption }}
<a href="{{ .url }}" class="link near-white absolute bottom-0 right-0 pa2 bg-black-30 br2">
{{ .text }}
</a>
{{ end }}
</div>
{{end}}
{{ if isset .Params "metadata" }}
{{ partial "metadata.html" . }}
{{ end }}
</header>
<div class="main-content sans-serif f5 f4-ns lh-copy baskerville">
{{ .Content }}
</div>
</article>
<div class="sans-serif f5 f4-ns lh-copy pv2">
{{ if isset .Params "metadata" }}
{{ partial "author_card" . }}
{{ end }}
{{ partial "post_pager" . }}
</div>
{{ end }}
|