1

Harmonise le bloc des articles relatifs

This commit is contained in:
2026-04-03 00:34:49 +02:00
parent 1160242e72
commit a6013ee59e
4 changed files with 42 additions and 58 deletions

View File

@@ -1,6 +1,7 @@
{{- $commentsMarkup := strings.TrimSpace (partial "asides/comments.html" .) -}}
{{- $keywordsMarkup := strings.TrimSpace (partial "asides/keywords.html" .) -}}
{{- if or (ne $commentsMarkup "") (ne $keywordsMarkup "") -}}
{{- $relatedMarkup := strings.TrimSpace (partial "article-related.html" .) -}}
{{- if or (ne $commentsMarkup "") (ne $keywordsMarkup "") (ne $relatedMarkup "") -}}
<section class="article-asides">
{{- with $commentsMarkup -}}
{{- . | safeHTML -}}
@@ -8,5 +9,8 @@
{{- with $keywordsMarkup -}}
{{- . | safeHTML -}}
{{- end -}}
{{- with $relatedMarkup -}}
{{- . | safeHTML -}}
{{- end -}}
</section>
{{- end -}}