2015-02-02 09:54:20 +00:00
|
|
|
{{ partial "header.html" . }}
|
2015-06-16 04:21:03 +00:00
|
|
|
{{ $baseurl := .Site.BaseURL }}
|
2015-02-02 09:54:20 +00:00
|
|
|
<article>
|
|
|
|
<header>
|
2015-02-04 17:33:31 +00:00
|
|
|
<h1 class="text-primary">{{ .Title }}</h1>
|
2015-02-02 09:54:20 +00:00
|
|
|
<div class="post-meta clearfix">
|
|
|
|
<div class="post-date pull-left">
|
|
|
|
Posted on
|
2015-06-16 04:21:03 +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 }}
|
2015-02-03 14:54:30 +00:00
|
|
|
<span class="post-tag small"><a href="{{ $baseurl }}/tags/{{ . | urlize }}">#{{ . }}</a></span>
|
2015-02-02 09:54:20 +00:00
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</header>
|
|
|
|
<section>
|
|
|
|
{{ .Content }}
|
|
|
|
</section>
|
|
|
|
<footer>
|
2015-02-04 17:33:31 +00:00
|
|
|
<section class="author-info row">
|
|
|
|
<div class="author-avatar col-md-2">
|
|
|
|
{{ with .Site.Params.avatar }}
|
2015-04-02 13:09:56 +00:00
|
|
|
<img alt="Author Avatar" src="{{ . }}" />
|
2015-02-04 17:33:31 +00:00
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
<div class="author-meta col-md-6">
|
2015-02-23 13:10:35 +00:00
|
|
|
{{ 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"></i>
|
|
|
|
Contact me
|
|
|
|
</a>
|
2015-02-04 17:33:31 +00:00
|
|
|
</div>
|
2015-02-23 13:10:35 +00:00
|
|
|
{{ end }}
|
2015-02-04 17:33:31 +00:00
|
|
|
</section>
|
2015-02-02 09:54:20 +00:00
|
|
|
<ul class="pager">
|
2015-02-23 07:32:14 +00:00
|
|
|
{{ if .Next }}
|
|
|
|
<li class="previous"><a href="{{ .Next.Permalink }}"><span aria-hidden="true">←</span> Older</a></li>
|
2015-02-02 09:54:20 +00:00
|
|
|
{{ else }}
|
|
|
|
<li class="previous disabled"><a href="#"><span aria-hidden="true">←</span> Older</a></li>
|
|
|
|
{{ end }}
|
2015-02-23 07:32:14 +00:00
|
|
|
{{ if .Prev }}
|
|
|
|
<li class="next"><a href="{{ .Prev.Permalink }}">Newer <span aria-hidden="true">→</span></a></li>
|
2015-02-02 09:54:20 +00:00
|
|
|
{{ else }}
|
|
|
|
<li class="next disabled"><a href="#">Newer <span aria-hidden="true">→</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" . }}
|