Commit 4ab4096d authored by Cyrille Chopelet's avatar Cyrille Chopelet

Merge branch 'feature/pagination' into develop

parents 9cd5143c 5abb58b3
This diff is collapsed.
......@@ -74,6 +74,9 @@ languages:
url: /stories/
weight: 2
# Pagination settings
paginate: 20
# Site parameters
params:
# The Twitter account for the website
......
{{ define "main" }}
{{ partial "list/header.html" . }}
{{ partial "list/header.html" . -}}
{{ partial "list/metadata.html" . -}}
{{ template "_internal/pagination.html" . -}}
<section class="entries">
{{ range .Paginator.Pages -}}
<article class="text">
......@@ -11,5 +15,6 @@
{{ end -}}
</section>
{{ template "_internal/pagination.html" . -}}
{{ partial "list/metadata.html" . -}}
{{ end }}
{{ define "main" }}
{{ partial "list/header.html" . }}
{{ partial "list/header.html" . -}}
<section class="metadata">{{ partial "translation/links.html" . }}</section>
<section class="entries">
{{ range $key, $value := .Data.Terms.ByCount -}}
<article class="text">
......
......@@ -19,6 +19,7 @@ $muted-text-color: $neutral-color;
$contrast-text-color: darken($contrast-color, 10%);
$link-color: lighten($accent-color, 15%);
$link-contrast-color: saturate($contrast-color, 15%);
$link-decoration: dotted underline;
$back-color-content: #eee;
......
......@@ -26,6 +26,7 @@
}
.header { font-size: larger; }
& > .metadata { margin: 18px 0; }
}
// Customization of all publications
......@@ -39,6 +40,7 @@
}
}
@import "pagination";
@import "texts";
@import "text-lists";
@import "banners";
......
.pagination {
list-style: none;
padding: 0;
}
.page-item {
display: inline;
padding: 0 5px;
&.disabled a {
color: $muted-text-color;
}
&.active a {
color: $link-contrast-color;
font-weight: bold;
}
}
......@@ -13,6 +13,6 @@ a,
// Make links in text more obvious
p a,
li a:not(.footnote-return) {
.body li a:not(.footnote-return) {
@include evidenced-link();
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment