From 2c17fbcdf8ea36d9d10dba243db94de85575e8ed Mon Sep 17 00:00:00 2001 From: Martin Kagamino Lehoux Date: Mon, 2 Oct 2023 09:02:20 +0200 Subject: chore: Copy theme layouts --- layouts/partials/list/categories.html | 3 +++ layouts/partials/list/components/pagination.html | 25 ++++++++++++++++++++++++ layouts/partials/list/default.html | 11 +++++++++++ 3 files changed, 39 insertions(+) create mode 100644 layouts/partials/list/categories.html create mode 100644 layouts/partials/list/components/pagination.html create mode 100644 layouts/partials/list/default.html (limited to 'layouts/partials/list') diff --git a/layouts/partials/list/categories.html b/layouts/partials/list/categories.html new file mode 100644 index 0000000..db527c6 --- /dev/null +++ b/layouts/partials/list/categories.html @@ -0,0 +1,3 @@ +
  • + {{ .Title }} ({{ len .Pages }}) +
  • diff --git a/layouts/partials/list/components/pagination.html b/layouts/partials/list/components/pagination.html new file mode 100644 index 0000000..07b3e74 --- /dev/null +++ b/layouts/partials/list/components/pagination.html @@ -0,0 +1,25 @@ +{{ $paginator := .Paginator }} + +
    + + +
    + {{ if $paginator.HasPrev }} + + {{ partial "handler/svg" "arrow-left" }} + Newer Posts + + {{ end }} +
    + +
    + + {{ if $paginator.HasNext }} + + Older Posts + {{ partial "handler/svg" "arrow-right" }} + + {{ end }} +
    + +
    diff --git a/layouts/partials/list/default.html b/layouts/partials/list/default.html new file mode 100644 index 0000000..a965ce5 --- /dev/null +++ b/layouts/partials/list/default.html @@ -0,0 +1,11 @@ +
    +

    {{ .Title }}

    +
    + {{ if .Params.description }} + {{ .Params.description }} + {{ else if .Summary }} + {{ .Summary }} + {{ end }} +
    + +
    \ No newline at end of file -- cgit v1.3