From fb0f579590390c7ea4eedde077ce399f7d9070e6 Mon Sep 17 00:00:00 2001 From: Yuliya Bagriy Date: Fri, 12 Jan 2024 00:11:46 -0500 Subject: [PATCH] better article listing --- layouts/_default/archive.html | 2 +- layouts/_default/baseof.html | 2 +- layouts/index.html | 4 ++-- layouts/partials/article-list.html | 38 +++++++++++++++--------------- layouts/partials/footer.html | 2 +- tailwind.config.js | 1 - 6 files changed, 24 insertions(+), 25 deletions(-) diff --git a/layouts/_default/archive.html b/layouts/_default/archive.html index 0f965d78..6eba2255 100644 --- a/layouts/_default/archive.html +++ b/layouts/_default/archive.html @@ -1,6 +1,6 @@ {{ define "content" }} {{ partial "title" . }} -
+
{{ partial "article-list" . }}
{{ end }} diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index f0286364..a28d454b 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -4,7 +4,7 @@
{{- partial "header.html" . -}} -
+
{{ block "content" . }}{{ end }}
{{- partial "footer.html" . -}} diff --git a/layouts/index.html b/layouts/index.html index d2b8cfc7..ca801c2c 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,6 +1,6 @@ {{ define "content" }} -
+
{{ partial "article-list" . }} - +
{{ end }} diff --git a/layouts/partials/article-list.html b/layouts/partials/article-list.html index b32b392f..6b87c8c7 100644 --- a/layouts/partials/article-list.html +++ b/layouts/partials/article-list.html @@ -1,23 +1,23 @@ -
{{- end -}} - \ No newline at end of file + \ No newline at end of file diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index a5fca6d1..07ed1195 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,3 +1,3 @@ -