1

Ajout d'un bloc d'historique de modifications

This commit is contained in:
2026-04-05 00:37:25 +02:00
parent adcb370623
commit e3ba6446b4
6 changed files with 145 additions and 1 deletions

View File

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