31 lines
730 B
HTML
31 lines
730 B
HTML
|
{{ 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" . }}
|