64 lines
1.9 KiB
HTML
64 lines
1.9 KiB
HTML
{{ define "main" }}
|
|
<div class="container" role="main">
|
|
<div class="row">
|
|
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
|
|
<article role="main" class="blog-post">
|
|
|
|
{{ partial "top-tags" . }}
|
|
{{ partial "part-of-series" . }}
|
|
|
|
{{ .Content }}
|
|
|
|
{{ if .Params.tags }}
|
|
<div class="blog-tags">
|
|
{{ range .Params.tags }}
|
|
{{ partial "tag-link" . }}
|
|
{{ end }}
|
|
</div>
|
|
{{ end }}
|
|
|
|
{{ if $.Param "socialShare" }}
|
|
<hr/>
|
|
<section id="social-share">
|
|
<div class="list-inline footer-links">
|
|
{{ partial "share-links" . }}
|
|
</div>
|
|
</section>
|
|
{{ end }}
|
|
|
|
{{ partial "see-also-series-list" . }}
|
|
|
|
{{ if not .Params.series }}
|
|
{{ if .Site.Params.showRelatedPosts }}
|
|
{{ $related := .Site.RegularPages.Related . | first 3 }}
|
|
{{ with $related }}
|
|
<h4 class="see-also">{{ i18n "seeAlso" }}</h4>
|
|
<ul>
|
|
{{ range . }}
|
|
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
|
|
{{ end }}
|
|
</ul>
|
|
{{ end }}
|
|
{{ end }}
|
|
{{ end }}
|
|
</article>
|
|
|
|
{{ if ne .Type "page" }}
|
|
<ul class="pager blog-pager">
|
|
{{ if .PrevInSection }}
|
|
<li class="previous">
|
|
<a href="{{ .PrevInSection.Permalink }}" data-toggle="tooltip" data-placement="top" title="{{ .PrevInSection.Title }}">← {{ i18n "previousPost" }}</a>
|
|
</li>
|
|
{{ end }}
|
|
{{ if .NextInSection }}
|
|
<li class="next">
|
|
<a href="{{ .NextInSection.Permalink }}" data-toggle="tooltip" data-placement="top" title="{{ .NextInSection.Title }}">{{ i18n "nextPost" }} →</a>
|
|
</li>
|
|
{{ end }}
|
|
</ul>
|
|
{{ end }}
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{{ end }}
|