From f096f2f6e64b32579eacc4b264c55ab0805cfdce Mon Sep 17 00:00:00 2001 From: sergiotarxz Date: Tue, 21 Jul 2020 01:13:56 +0200 Subject: [PATCH 1/2] Adding hyperlinks to blog post titles, if there is no title, page permalink is used as a title. Issue #2 --- php/home.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/php/home.php b/php/home.php index 9612ec1..f886332 100644 --- a/php/home.php +++ b/php/home.php @@ -2,12 +2,15 @@
- title()): ?>
-

title() ?>

+

+ + title() ? $page->title() : $page->permalink() ); + ?> + +

- - coverImage()): ?> <?php echo $page->slug() ?> From 5d3f40cd4a694d614029b7f5d1f2f44b990e1e4d Mon Sep 17 00:00:00 2001 From: sergiotarxz Date: Thu, 23 Jul 2020 11:07:28 +0200 Subject: [PATCH 2/2] fix: Making article url appear always on article footer. So pages which you don't want to have title won't have a big permalink. Issue #2 --- php/home.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/php/home.php b/php/home.php index f886332..b86c14c 100644 --- a/php/home.php +++ b/php/home.php @@ -3,13 +3,15 @@