From 88f8c6a9a6937ccc32b814f4f5acc94790004ef5 Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Wed, 20 Mar 2024 20:14:52 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20(blogarticle)=20Show=20headline?= =?UTF-8?q?=20as=20h3=20on=20homepage?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- site/snippets/article.php | 5 +++++ site/templates/blog.php | 2 +- site/templates/home.php | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/site/snippets/article.php b/site/snippets/article.php index 98ab62a..b97639b 100644 --- a/site/snippets/article.php +++ b/site/snippets/article.php @@ -1,5 +1,10 @@
+

title() ?>

+ +

title() ?>

+ +

date()->toDate('Y-m-d') ?>

diff --git a/site/templates/blog.php b/site/templates/blog.php index bddb204..27395cf 100644 --- a/site/templates/blog.php +++ b/site/templates/blog.php @@ -5,7 +5,7 @@ text()->kirbytext() ?> - $article]) ?> + $article, 'main' => true]) ?> pagination()->hasPages()): ?> diff --git a/site/templates/home.php b/site/templates/home.php index c6658d5..3b20c57 100644 --- a/site/templates/home.php +++ b/site/templates/home.php @@ -22,7 +22,7 @@

Latest Posts

children()->listed()->flip()->limit(3) as $article): ?> - $article]) ?> + $article, 'main' => false]) ?> Read more posts