blob: 910d6b60e99f4d6483a59bd138f246d3201e5414 (
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
|
{{ partial "header.html" . }}
{{ $baseurl := .Site.BaseURL }}
{{ $data := index .Site.Data .Site.Language.Lang }}
<article>
<header class="article-title">
<h1 class="text-primary">{{ .Title }}</h1>
</header>
<div class="delimiter"></div>
<section>
{{ .Content }}
</section>
<div class="clearfix">
{{ if (isset .Params "noshowdate") }}
{{ else }}
<div class="post-date pull-left">
<span class="small">
{{ i18n "postedOn" }}
{{ .Date.Format ( i18n "dateTimeFormat" ) }}
</span>
</div>
{{ end }}
<div class="pull-right">
{{ range .Params.tags }}
<span class="post-tag small">
<a href="{{ ($.Site.GetPage "taxonomy" ( print "/tags/" ( . ) ) ).Permalink }}">
#{{ . }}
</a>
</span>
{{ end }}
</div>
</div>
<footer>
{{ if and (isset $data "authors") (isset .Params "author") }}
{{ $author := index $data.authors .Params.author }}
<div class="delimiter"></div>
<section class="author-info row">
<div class="author-avatar col-md-2">
{{ with $author.avatar }}
<img alt="Author Avatar" src="{{ . }}" />
{{ end }}
</div>
<div class="author-meta col-md-10">
{{ with $author.name }}
<h2 class="author-name text-primary">{{ . }}</h2>
{{ end }}
{{ with $author.bio }}
<div class="author-bio">{{ . }}</div>
{{ end }}
{{ with $author.contact }}
<a class="btn btn-primary author-contact" href="{{ . }}">
<div>
<i class="fa fa-envelope-o" aria-hidden="true"></i>
{{ i18n "contactMe" }}
</div>
</a>
{{ end }}
</div>
</section>
{{ end }}
{{ if .Site.Params.UseCommento }}
<div class="delimiter"></div>
<h2 class="text-primary">Kommentare</h2>
<div id="commento"></div>
<script src="https://cdn.commento.io/js/commento.js"></script>
{{ else if (isset .Site.Params "disqus") }}
{{ with .Site.Params.disqus }}
<div class="delimiter"></div>
<div id="disqus_thread"></div>
<script type="text/javascript">
var disqus_shortname = '{{ . }}';
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
{{ end }}
{{ end }}
<div class="delimiter"></div>
<div class="pager-container">
{{ with .PrevInSection }}
<a class="btn btn-primary btn-older-posts" href="{{ .Permalink }}">
<div>
<span aria-hidden="true">←</span> {{ i18n "olderPosts" }}
</div>
</a>
{{ else }}
<a class="btn btn-primary btn-older-posts disabled" href="#">
<div>
<span aria-hidden="true">←</span> {{ i18n "olderPosts" }}
</div>
</a>
{{ end }}
{{ with .NextInSection }}
<a class="btn btn-primary btn-newer-posts" href="{{ .Permalink }}">
<div>
{{ i18n "newerPosts" }} <span aria-hidden="true">→</span>
</div>
</a>
{{ else }}
<a class="btn btn-primary btn-newer-posts disabled" href="#">
<div>
{{ i18n "newerPosts" }} <span aria-hidden="true">→</span>
</div>
</a>
{{ end }}
</div>
</footer>
</article>
<div class="delimiter"></div>
{{ partial "footer.html" . }}
|