Ajout de la pagination pour les dossiers
This commit is contained in:
@@ -3,13 +3,6 @@ header#hero-page {
|
|||||||
gap: var(--gap-hero-page);
|
gap: var(--gap-hero-page);
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|
||||||
.sup-title {
|
|
||||||
text-align: center;
|
|
||||||
font-variant: small-caps;
|
|
||||||
text-shadow: var(--shadow-text);
|
|
||||||
color: var(--color-site-title);
|
|
||||||
}
|
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-size: 1.25em;
|
font-size: 1.25em;
|
||||||
@@ -21,6 +14,13 @@ header#hero-page {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.sup-title {
|
||||||
|
text-align: center;
|
||||||
|
font-variant: small-caps;
|
||||||
|
text-shadow: var(--shadow-text);
|
||||||
|
color: var(--color-site-title);
|
||||||
|
}
|
||||||
|
|
||||||
@media (min-width: 460px) {
|
@media (min-width: 460px) {
|
||||||
header#hero-page {
|
header#hero-page {
|
||||||
h1 {
|
h1 {
|
||||||
|
|||||||
@@ -19,15 +19,16 @@
|
|||||||
|
|
||||||
ul {
|
ul {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
top: 100%;
|
||||||
|
left: 50%;
|
||||||
|
transform: translateX(-50%);
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: var(--gap-half);
|
gap: var(--gap-half);
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
max-height: 50vh;
|
max-height: 50vh;
|
||||||
min-width: 300px;
|
width: max-content;
|
||||||
width: auto;
|
max-width: calc(100vw - (2 * var(--padding)));
|
||||||
left: 50%;
|
|
||||||
margin-left: -150px;
|
|
||||||
padding: var(--padding);
|
padding: var(--padding);
|
||||||
list-style: none;
|
list-style: none;
|
||||||
border-radius: var(--radius-pagination);
|
border-radius: var(--radius-pagination);
|
||||||
@@ -55,4 +56,4 @@
|
|||||||
color: var(--color-text-muted);
|
color: var(--color-text-muted);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
{{- end -}}
|
{{- end -}}
|
||||||
<nav class="pagination" aria-label="Sommaire du dossier">
|
<nav class="pagination" aria-label="Sommaire du dossier">
|
||||||
{{- if ge $index 1 }}
|
{{- if ge $index 1 }}
|
||||||
<a class="prev" href="{{ $prev.RelPermalink }}" title="Page précédente">←</a>
|
<a class="prev" href="{{ $prev.RelPermalink }}" title="Page précédente : {{ $prev.Title }}">←</a>
|
||||||
{{- else }}
|
{{- else }}
|
||||||
<span class="disabled prev">←</span>
|
<span class="disabled prev">←</span>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
@@ -43,7 +43,7 @@
|
|||||||
</details>
|
</details>
|
||||||
|
|
||||||
{{- if lt (add $index 1) (len $sorted) }}
|
{{- if lt (add $index 1) (len $sorted) }}
|
||||||
<a class="next" href="{{ $next.RelPermalink }}" title="Page suivante">→</a>
|
<a class="next" href="{{ $next.RelPermalink }}" title="Page suivante : {{ $next.Title }}">→</a>
|
||||||
{{- else }}
|
{{- else }}
|
||||||
<span class="disabled next">→</span>
|
<span class="disabled next">→</span>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
@@ -26,6 +26,12 @@
|
|||||||
|
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
|
|
||||||
|
<aside>
|
||||||
|
<div class="panel">
|
||||||
|
{{- partial "dossier-summary" . -}}
|
||||||
|
</div>
|
||||||
|
</aside>
|
||||||
|
|
||||||
{{- partial "asides/keywords.html" . }}
|
{{- partial "asides/keywords.html" . }}
|
||||||
</article>
|
</article>
|
||||||
</main>
|
</main>
|
||||||
|
|||||||
Reference in New Issue
Block a user