50 lines
1.5 KiB
HTML
50 lines
1.5 KiB
HTML
{{ partial "header.html" . }}
|
|
|
|
<article class="post-single">
|
|
<header class="post-title">
|
|
<aside>
|
|
<time>{{ .Date.Format "January 2, 2006" }}</time>
|
|
{{ if or .Params.Author site.Author.name }}
|
|
<span>{{ .Params.Author | default site.Author.name }}</span>
|
|
{{ end }}
|
|
</aside>
|
|
|
|
<h1>{{ .Title }}</h1>
|
|
</header>
|
|
|
|
<section class="post-content">{{ .Content }}</section>
|
|
|
|
{{ if .Params.tags }}
|
|
<footer class="post-tags">
|
|
{{ range .Params.tags }}
|
|
{{ $href := print (absURL "tags/") (urlize .) }}
|
|
<a href="{{ $href }}">{{ . }}</a>
|
|
{{ end }}
|
|
</footer>
|
|
{{ end }}
|
|
|
|
{{ $pages := where site.RegularPages "Type" "in" site.Params.mainSections }}
|
|
{{ if and (gt (len $pages) 1) (in $pages . ) }}
|
|
<nav class="post-nav">
|
|
{{ with $pages.Next . }}
|
|
<a class="prev" href="{{ .Permalink }}"><span>←</span><span>{{ .Name }}</span></a>
|
|
{{ end }}
|
|
{{ with $pages.Prev . }}
|
|
<a class="next" href="{{ .Permalink }}"><span>{{ .Name }}</span><span>→</span></a>
|
|
{{ end }}
|
|
</nav>
|
|
{{ end }}
|
|
|
|
{{ if and site.DisqusShortname (not (eq .Params.comments false)) }}
|
|
<div id="disqus_thread" class="post-comments"></div>
|
|
<script>
|
|
var disqusShortname = '{{ site.DisqusShortname }}';
|
|
var script = document.createElement('script');
|
|
script.src = 'https://' + disqusShortname + '.disqus.com/embed.js';
|
|
script.setAttribute('data-timestamp', +new Date());
|
|
document.head.appendChild(script);
|
|
</script>
|
|
{{ end }}
|
|
</article>
|
|
|
|
{{ partial "footer.html" . }}
|