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 -}}

View File

@@ -40,10 +40,8 @@
{{- end -}}
{{- if gt (len $items) 0 -}}
<section class="article-related">
<header>
<h2>Articles relatifs</h2>
</header>
<section class="article-aside-block article-related">
<h2>Articles relatifs</h2>
{{- partial "articles-list.html" (dict
"Pages" $items
"ShowDossierBeforeTitle" true

View File

@@ -5,7 +5,6 @@
{{ .Content }}
{{ partial "article-books.html" . }}
{{ partial "article-asides.html" . }}
{{ partial "article-related.html" . }}
{{ partial "article-footer.html" . }}
</article>
{{ partial "asides/complementary-images.html" . }}