diff options
| author | Francesco <tomaselli.fr@gmail.com> | 2024-06-24 18:44:39 +0200 | 
|---|---|---|
| committer | Francesco <tomaselli.fr@gmail.com> | 2024-06-24 18:44:39 +0200 | 
| commit | ec3f104c10ba40ed5050a61afed9d5410ffae1a5 (patch) | |
| tree | 45711275584ef4ce1d4d96acf1ddf8f5651a71e1 /layouts/partials | |
| parent | 362d739cd496b3d7d8d03bb4696380f440829ca9 (diff) | |
Pagination on single posts
Diffstat (limited to 'layouts/partials')
| -rw-r--r-- | layouts/partials/pagination-single.html | 39 | 
1 files changed, 39 insertions, 0 deletions
| diff --git a/layouts/partials/pagination-single.html b/layouts/partials/pagination-single.html new file mode 100644 index 0000000..9bc5ced --- /dev/null +++ b/layouts/partials/pagination-single.html @@ -0,0 +1,39 @@ +{{ if or .NextInSection .PrevInSection }} + +<div class="single-pagination"> +    <hr /> + +    <div class="flex"> + +        <div class="single-pagination-prev"> +            {{ with .PrevInSection }} +            <div class="single-pagination-container-prev"> +                <div class="single-pagination-text">←</div> +                <div class="single-pagination-text"> +                    <a href="{{ .Permalink }}"> +                        {{ .Title }} +                    </a> +                </div> +            </div> +            {{ end }} +        </div> + +        <div class="single-pagination-next"> +            {{ with .NextInSection }} +            <div class="single-pagination-container-next"> +                <div class="single-pagination-text"> +                    <a href="{{ .Permalink }}"> +                        {{ .Title }} +                    </a> +                </div> +                <div class="single-pagination-text">→</div> +            </div> +            {{ end }} +        </div> + +    </div> + +    <hr /> +</div> + +{{ end }} | 
