blob: e1735e765a0903c22222a67b794a5a2b24762156 (
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
{{ define "body_class" }} post-template {{ end }}
{{ define "main" }}
<header class="site-header">
{{- partial "site-header.html" $ -}}
</header>
<main id="site-main" class="site-main outer">
<div class="inner">
<article class="post-full post {{ if not (.Param "feature_image") }} no-image {{ end }}">
<header class="post-full-header">
{{ with .Params.tags }}
{{ $primaryTag := (index . 0) }}
<section class="post-full-tags">
<a href="{{ "/tags/" | relLangURL }}{{ $primaryTag | urlize }}">{{ $primaryTag }}</a>
</section>
{{ end }}
<h1 class="post-full-title">{{ .Title }}</h1>
{{ if .Param "summary" }}
<p class="post-full-custom-excerpt">{{ .Summary }}</p>
{{ end }}
<div class="post-full-byline">
<section class="post-full-byline-content">
{{ if .Param "authors" }}
{{- partial "post-authors.html" . -}}
{{ end }}
<section class="post-full-byline-meta">
{{ if .Param "authors" }}
<h4 class="author-name">
{{- partial "post-author-names.html" . -}}
</h4>
{{ end }}
<div class="byline-meta-content">
<time class="byline-meta-date" datetime="{{.Date.Format "2006-31-01"}}">{{.Date.Format "2 January 2006"}}</time>
<span class="byline-reading-time"><span class="bull">•</span> {{ .ReadingTime }} min read</span>
</div>
</section>
</section>
</div>
</header>
{{ if .Param "feature_image" }}
<figure class="post-full-image">
<img src="{{ .Param "feature_image" }}" alt="{{ .Title }}" />
</figure>
{{ end }}
<section class="post-full-content">
<div class="post-content">
{{ .Content }}
</div>
</section>
</article>
</div>
</main>
{{- partial "post-navigation.html" . -}}
{{ end }}
|