theme/layouts/_default/single.html

31 lines
730 B
HTML
Raw Normal View History

2018-03-18 23:02:48 +00:00
{{ partial "header" . }}
<main>
{{ partial "list-item" . }}
<br> <div class="text-justify">{{ .Content }}</div>
<!-- related posts with the same tags -->
{{ $related := first 3 (where (where (where .Site.Pages.ByDate.Reverse ".Type" "==" "billets") ".Params.tags" "intersect" .Params.tags) "Permalink" "!=" .Permalink) }}
{{ if $related }}
<h4 class="page-header">Articles connexes</h4>
{{ range $related }} {{ partial "list-item" . }} {{ end }}
{{ end }}
{{ if and .Site.DisqusShortname (not .Params.disableComments) }}
<h4 class="page-header">Commentaires</h4>
{{ template "_internal/disqus.html" . }}
{{ end }}
</main>
{{ partial "footer.html" . }}