{{define "title"}}
{{.Article.Title}} | {{.Config.Title}}
{{end}}

{{define "content"}}
<h1>{{.Article.Title}}</h1>

<p>
{{if .Config.Author }}
<span class="label label-success">by {{.Config.Author}}</span>
{{end}}

{{if .Article.Date}}
<span class="label label-success">{{.Article.Date}}</span>
{{end}}

{{if .Article.Tags}}
{{range $_, $tag := .Article.Tags}}
<span class="label label-info">{{$tag}}</span>
{{end}}
{{end}}
</p>

{{.Article.Html .Article.Content}}
{{if .Config.DisqusSitename}}
<h2>Comments</h2>
<script type="text/javascript">
  var disqus_shortname = '{{.Config.DisqusSitename}}';
  (function () {
    var s = document.createElement('script'); s.async = true;
    s.type = 'text/javascript';
    s.src = 'http://' + disqus_shortname + '.disqus.com/count.js';
    (document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
  }());
</script>
{{end}}
{{end}}

{{define "title"}}
{{.Article.Title}} | {{.Config.Title}}
{{end}}

{{define "content"}}
<h1>{{.Article.Title}}</h1>

<p>
{{if .Config.Author }}
<span class="label label-success">by {{.Config.Author}}</span>
{{end}}

{{if .Article.Date}}
<span class="label label-success">{{.Article.Date}}</span>
{{end}}

{{if .Article.Tags}}
{{range $_, $tag := .Article.Tags}}
<span class="label label-info">{{$tag}}</span>
{{end}}
{{end}}
</p>

{{.Article.Html .Article.Content}}
{{if .Config.DisqusSitename}}
<h2>Comments</h2>
<div id="disqus_thread"></div>
<script type="text/javascript">
  var disqus_shortname = '{{ .Config.DisqusSitename }}';

  (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}}
{{end}}

Add the disqus div... shame!
Add the disqus div... shame!
