Suppression des commentaires
This commit is contained in:
@@ -588,11 +588,6 @@ main > article > section.article-asides section.article-aside-block {
|
||||
background: var(--color-surface-soft);
|
||||
}
|
||||
|
||||
main > article > section.article-asides section.article-comments-callout {
|
||||
border-top-color: var(--color-section-divider-1);
|
||||
background: linear-gradient(180deg, rgba(217, 122, 63, 0.18) 0%, rgba(17, 27, 42, 0.56) 100%);
|
||||
}
|
||||
|
||||
main > article > section.article-asides section.article-taxonomies {
|
||||
border-top-color: var(--color-accent-2);
|
||||
background: linear-gradient(180deg, rgba(93, 134, 173, 0.18) 0%, rgba(17, 27, 42, 0.56) 100%);
|
||||
@@ -636,22 +631,6 @@ main > article > section.article-asides section.article-aside-block > p {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
main > article > section.article-asides section.article-comments-callout > p:last-child {
|
||||
margin-top: var(--space-3);
|
||||
}
|
||||
|
||||
main > article > section.article-asides section.article-comments-callout > p:last-child > a.ui-button {
|
||||
width: 100%;
|
||||
min-height: 2.7rem;
|
||||
border-color: #a69250;
|
||||
background: linear-gradient(180deg, rgba(217, 122, 63, 0.38) 0%, rgba(17, 27, 42, 0.94) 100%);
|
||||
}
|
||||
|
||||
main > article > section.article-asides section.article-comments-callout > p:last-child > a.ui-button:is(:hover, :focus-visible) {
|
||||
border-color: #c1a249;
|
||||
background: linear-gradient(180deg, rgba(217, 122, 63, 0.54) 0%, rgba(17, 27, 42, 0.98) 100%);
|
||||
}
|
||||
|
||||
main > article > section.article-asides section.article-taxonomies > div.article-taxonomies-groups {
|
||||
margin-top: var(--space-2);
|
||||
display: grid;
|
||||
@@ -1455,27 +1434,25 @@ main > article .footnote-ref {
|
||||
line-height: normal;
|
||||
}
|
||||
|
||||
main > article .footnotes {
|
||||
ol {
|
||||
margin: var(--margin) auto;
|
||||
padding-left: 1.5em;
|
||||
font-size: 1rem;
|
||||
list-style-type: decimal;
|
||||
list-style-position: outside;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--gap-half);
|
||||
main > article .footnotes ol {
|
||||
margin: var(--margin) auto;
|
||||
padding-left: 1.5em;
|
||||
font-size: 1rem;
|
||||
list-style-type: decimal;
|
||||
list-style-position: outside;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--gap-half);
|
||||
}
|
||||
|
||||
li {
|
||||
padding-left: 0.2em;
|
||||
}
|
||||
main > article .footnotes ol li {
|
||||
padding-left: 0.2em;
|
||||
}
|
||||
|
||||
p {
|
||||
width: auto;
|
||||
line-height: 130%;
|
||||
font-size: inherit;
|
||||
}
|
||||
}
|
||||
main > article .footnotes ol p {
|
||||
width: auto;
|
||||
line-height: 130%;
|
||||
font-size: inherit;
|
||||
}
|
||||
|
||||
sup {
|
||||
|
||||
@@ -1,23 +1,17 @@
|
||||
{{- $complementaryFilesMarkup := strings.TrimSpace (partial "asides/complementary-images.html" .) -}}
|
||||
{{- $commentsMarkup := strings.TrimSpace (partial "asides/comments.html" .) -}}
|
||||
{{- $keywordsMarkup := strings.TrimSpace (partial "asides/keywords.html" .) -}}
|
||||
{{- $dossierMarkup := strings.TrimSpace (partial "asides/dossier.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 $complementaryFilesMarkup "") (ne $commentsMarkup "") (ne $keywordsMarkup "") (ne $dossierMarkup "") (ne $changeHistoryMarkup "") (ne $furtherReadingMarkup "") (ne $relatedMarkup "") -}}
|
||||
{{- if or (ne $complementaryFilesMarkup "") (ne $keywordsMarkup "") (ne $dossierMarkup "") (ne $changeHistoryMarkup "") (ne $furtherReadingMarkup "") (ne $relatedMarkup "") -}}
|
||||
<section class="article-asides">
|
||||
{{- with $complementaryFilesMarkup -}}
|
||||
{{- . | safeHTML -}}
|
||||
{{- end -}}
|
||||
{{- if or (ne $commentsMarkup "") (ne $keywordsMarkup "") -}}
|
||||
<div class="article-asides-grid">
|
||||
{{- with $commentsMarkup -}}
|
||||
{{- . | safeHTML -}}
|
||||
{{- end -}}
|
||||
{{- with $keywordsMarkup -}}
|
||||
<div class="article-asides-grid">
|
||||
{{- . | safeHTML -}}
|
||||
{{- end -}}
|
||||
</div>
|
||||
{{- end -}}
|
||||
{{- with $dossierMarkup -}}
|
||||
|
||||
@@ -1,20 +0,0 @@
|
||||
{{- $url := "" -}}
|
||||
{{- with .Params.comments_url -}}
|
||||
{{- $url = strings.TrimSpace . -}}
|
||||
{{- end -}}
|
||||
{{- if ne $url "" -}}
|
||||
{{- $isExternal := strings.HasPrefix $url "http" -}}
|
||||
<section class="article-aside-block article-comments-callout">
|
||||
<h2>Échanger autour de ce texte</h2>
|
||||
<p>Si vous souhaitez réagir publiquement, un fil dédié vous attend.</p>
|
||||
<p>
|
||||
<a
|
||||
class="ui-button{{ if $isExternal }} link-external{{ end }}"
|
||||
href="{{ $url }}"
|
||||
{{- if $isExternal }} target="_blank" rel="noreferrer noopener"{{ end -}}
|
||||
>
|
||||
Ouvrir le fil de discussion
|
||||
</a>
|
||||
</p>
|
||||
</section>
|
||||
{{- end -}}
|
||||
@@ -2,27 +2,13 @@
|
||||
{{- $hasTOC := gt (len (findRE "<li>" $toc)) 0 -}}
|
||||
{{- $dossierSummary := partial "dossier-summary.html" (dict "Page" .) -}}
|
||||
{{- $hasDossierSummary := ne (strings.TrimSpace $dossierSummary) "" -}}
|
||||
{{- $commentsURL := "" -}}
|
||||
{{- with .Params.comments_url -}}
|
||||
{{- $commentsURL = strings.TrimSpace . -}}
|
||||
{{- end -}}
|
||||
{{- $hasCommentsLink := ne $commentsURL "" -}}
|
||||
{{- if or $hasDossierSummary $hasTOC $hasCommentsLink -}}
|
||||
{{- if or $hasDossierSummary $hasTOC -}}
|
||||
{{- $tocMarkup := "" -}}
|
||||
{{- if $hasTOC -}}
|
||||
{{- $tocMarkup = replace $toc `<nav id="TableOfContents">` `<div class="article-toc-list">` -}}
|
||||
{{- $tocMarkup = replace $tocMarkup `</nav>` `</div>` -}}
|
||||
{{- end -}}
|
||||
<aside class="article-toc">
|
||||
{{- if $hasCommentsLink -}}
|
||||
{{- partial "render/link.html" (dict
|
||||
"Destination" $commentsURL
|
||||
"Title" "Voir les commentaires"
|
||||
"Text" "<span>Commentaires</span>"
|
||||
"Class" "ui-button ui-button--vertical article-toc-link article-toc-link-comments"
|
||||
"Page" .
|
||||
) -}}
|
||||
{{- end -}}
|
||||
{{- if $hasDossierSummary -}}
|
||||
<details class="article-toc-drawer article-toc-drawer-dossier">
|
||||
<summary class="ui-button ui-button--vertical"><span>Dossier</span></summary>
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
{{- $page := . -}}
|
||||
{{- $commentsURL := "" -}}
|
||||
{{- $commentsLabel := "Commentaires" -}}
|
||||
{{- $linkClass := "" -}}
|
||||
{{- $linksParam := $page.Params.links -}}
|
||||
|
||||
@@ -8,16 +6,6 @@
|
||||
{{- if isset . "Page" -}}
|
||||
{{- $page = index . "Page" -}}
|
||||
{{- end -}}
|
||||
{{- if isset . "CommentsURL" -}}
|
||||
{{- with (index . "CommentsURL") -}}
|
||||
{{- $commentsURL = . -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- if isset . "CommentsLabel" -}}
|
||||
{{- with (index . "CommentsLabel") -}}
|
||||
{{- $commentsLabel = . -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- if isset . "LinkClass" -}}
|
||||
{{- with (index . "LinkClass") -}}
|
||||
{{- $linkClass = . -}}
|
||||
@@ -50,20 +38,9 @@
|
||||
{{- $addWikiLink = true -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- if or (ne $commentsURL "") (gt (len $links) 0) $addWikiLink -}}
|
||||
{{- if or (gt (len $links) 0) $addWikiLink -}}
|
||||
<nav class="page-links" aria-label="Liens associés">
|
||||
<ul>
|
||||
{{- with $commentsURL -}}
|
||||
<li>
|
||||
{{- partial "render/link.html" (dict
|
||||
"Destination" .
|
||||
"Title" "Voir les commentaires"
|
||||
"Text" $commentsLabel
|
||||
"Class" $linkClass
|
||||
"Page" $page
|
||||
) -}}
|
||||
</li>
|
||||
{{- end -}}
|
||||
{{- range $links -}}
|
||||
{{- $text := default .name .text -}}
|
||||
{{- $title := default $text .title -}}
|
||||
|
||||
Reference in New Issue
Block a user