planblog/layouts/_default/single.html

52 lines
1.8 KiB
HTML
Raw Normal View History

2015-02-02 09:54:20 +00:00
{{ partial "header.html" . }}
{{ $baseurl := .Site.BaseUrl }}
<article>
<header>
<h1>{{ .Title }}</h1>
<div class="post-meta clearfix">
<div class="post-date pull-left">
Posted on
2015-02-03 13:54:13 +00:00
<time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHtml }}">
2015-02-02 09:54:20 +00:00
{{ .Date.Format "Jan 2, 2006" }}
</time>
</div>
<div class="pull-right">
{{ range .Params.tags }}
<span class="post-tag"><a href="{{ $baseurl }}/tags/{{ . | urlize }}">#{{ . }}</a></span>
{{ end }}
</div>
</div>
</header>
<section>
{{ .Content }}
</section>
<footer>
<ul class="pager">
{{ if .Prev }}
<li class="previous"><a href="{{ .Prev.Permalink }}"><span aria-hidden="true">&larr;</span> Older</a></li>
{{ else }}
<li class="previous disabled"><a href="#"><span aria-hidden="true">&larr;</span> Older</a></li>
{{ end }}
{{ if .Next }}
<li class="next"><a href="{{ .Next.Permalink }}">Newer <span aria-hidden="true">&rarr;</span></a></li>
{{ else }}
<li class="next disabled"><a href="#">Newer <span aria-hidden="true">&rarr;</span></a></li>
{{ end }}
</ul>
2015-02-03 13:15:15 +00:00
{{ with .Site.DisqusShortname }}
<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 }}
2015-02-02 09:54:20 +00:00
</footer>
</article>
{{ partial "footer.html" . }}