From d259f4e8f2a3781d4251e366bf0074dcbb513433 Mon Sep 17 00:00:00 2001 From: kolaente Date: Sat, 29 Jan 2022 16:32:53 +0100 Subject: [PATCH] feat: blog index --- layouts/partials/footer.html | 2 +- layouts/post/list.html | 67 +++++++++++++++++++++++------------- 2 files changed, 44 insertions(+), 25 deletions(-) diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 76c79f7..94cba5c 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -31,7 +31,7 @@ + class="mt-4 px-4 py-2 text-base font-medium rounded-md text-white bg-primary hover:bg-primary-darker cursor-pointer"/>
diff --git a/layouts/post/list.html b/layouts/post/list.html index ace627b..084dcd1 100644 --- a/layouts/post/list.html +++ b/layouts/post/list.html @@ -1,37 +1,56 @@ {{ partial "header.html" . }} -
+
+

Blog

+

All the latest Vikunja news and updates.

+ {{ $paginator := .Paginate (where .Data.Pages "Type" "post") }}{{ range $paginator.Pages }} -
-
-
-
- {{ .Title }} -

- {{ .Date.Format "2006-01-02" }} -

-
-
- -
- {{ .Summary }} -
- - +
+ {{ .Title }} +

+ {{ .Date.Format "2006-01-02" }} +

+

+ {{ .Summary }} +

+ + Read more - -
-
+ + + + + + {{ end }} -
+ {{ partial "footer.html" . }}