blob: fae686c8d54c02e1db7d3b1250f37b802d9ebf80 (
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
|
{{ partial "header.html" . }}
{{ $baseurl := .Site.BaseURL }}
<article>
<header>
<h1 class="text-primary">{{ .Title }}</h1>
<div class="post-meta clearfix">
{{ if (isset .Params "noshowdate") }}
{{ else }}
<div class="post-date pull-left">
Posted on
<time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}">
{{ .Date.Format "Jan 2, 2006" }}
</time>
</div>
{{ end }}
<div class="pull-right">
{{ range .Params.tags }}
<span class="post-tag small"><a href="{{ $baseurl }}/tags/{{ . | urlize }}">#{{ . }}</a></span>
{{ end }}
</div>
</div>
</header>
<section>
{{ .Content }}
</section>
<footer>
{{ if (isset .Params "nocomments") }}
{{ else }}
{{ with .Site.Params.disqus }}
<hr/>
<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 }}
<section class="author-info row">
<div class="author-avatar col-md-2">
{{ with .Site.Params.avatar }}
<img alt="Author Avatar" src="{{ . }}" />
{{ end }}
</div>
<div class="author-meta col-md-6">
{{ with .Site.Params.author }}
<h1 class="author-name text-primary">{{ . }}</h1>
{{ end }}
{{ with .Site.Params.bio }}
<div class="author-bio">{{ . }}</div>
{{ end }}
</div>
{{ with .Site.Params.contact }}
<div class="author-contact col-md-4">
<a href="{{ . }}">
<i class="fa fa-envelope-o" aria-hidden="true"></i>
Contact me
</a>
</div>
{{ end }}
</section>
<ul class="pager">
{{ if .Prev }}
<li class="previous"><a href="{{ .Prev.Permalink }}"><span aria-hidden="true">←</span>Older</a></li>
{{ else }}
<li class="previous disabled"><a href="#"><span aria-hidden="true">←</span>Older</a></li>
{{ end }}
{{ if .Next }}
<li class="next"><a href="{{ .Next.Permalink }}">Newer<span aria-hidden="true">→</span></a></li>
{{ else }}
<li class="next disabled"><a href="#">Newer<span aria-hidden="true">→</span></a></li>
{{ end }}
</ul>
</footer>
</article>
{{ partial "footer.html" . }}
|