1

Bloc "Pour aller plus loin"

This commit is contained in:
2026-04-05 00:14:23 +02:00
parent 7592c9cace
commit adcb370623
19 changed files with 204 additions and 168 deletions

View File

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