40 lines
1.7 KiB
HTML
40 lines
1.7 KiB
HTML
|
{{ partial "head.html" . }}
|
||
|
<div class="content container">
|
||
|
<div class="post">
|
||
|
<h1>{{ .Title }}</h1>
|
||
|
<span class="post-date">{{ .Date.Format "Jan 2, 2006" }} · {{ .ReadingTime }} minute read{{ if .Site.DisqusShortname }} · <a href="{{ .Permalink }}#disqus_thread">Comments</a>{{ end }}
|
||
|
{{ if isset .Params "categories" }}
|
||
|
<br/>
|
||
|
{{ range .Params.categories }}<a class="label" href="{{ "/categories/" | absURL }}{{ . | urlize }}">{{ . }}</a>{{ end }}
|
||
|
{{ end }}</span>
|
||
|
{{ .Content }}
|
||
|
</div>
|
||
|
{{ if .Site.DisqusShortname }}<div id="disqus_thread"></div>{{ end }}
|
||
|
</div>
|
||
|
|
||
|
{{ with .Site.DisqusShortname }}
|
||
|
<script type="text/javascript">
|
||
|
var disqus_shortname = {{ . }};
|
||
|
(function () {
|
||
|
var s = document.createElement('script'); s.async = true;
|
||
|
s.type = 'text/javascript';
|
||
|
s.src = '//' + disqus_shortname + '.disqus.com/count.js';
|
||
|
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
|
||
|
}());
|
||
|
</script>
|
||
|
{{ end }}
|
||
|
|
||
|
{{ with .Site.DisqusShortname }}
|
||
|
<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="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
|
||
|
<a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
|
||
|
{{ end }}
|
||
|
{{ partial "foot.html" . }}
|