From d258eee493e43a8a0034d3baf7c214715da489f6 Mon Sep 17 00:00:00 2001
From: Aspectis <tobias@aspectis.net>
Date: Thu, 18 Feb 2021 13:22:17 +0100
Subject: [PATCH] refs #19118 [fid_bbi] add links to posts

---
 themes/fid_bbi/templates/search/home.phtml | 15 ++++++---------
 1 file changed, 6 insertions(+), 9 deletions(-)

diff --git a/themes/fid_bbi/templates/search/home.phtml b/themes/fid_bbi/templates/search/home.phtml
index 07126cca94c..474c47e37c5 100644
--- a/themes/fid_bbi/templates/search/home.phtml
+++ b/themes/fid_bbi/templates/search/home.phtml
@@ -10,14 +10,13 @@ $this->layout()->breadcrumbs = false;
   <div class="flex_2">
     <h2 class="sr-only"><?=$this->translate('Recent Blog Posts')?></h2>
 
-    <div class="posts">
-        <?php
-        $posts = $this->rss();
-    if ($posts): ?>
+    <?php $posts = $this->rss(); ?>
+    <?php if ($posts): ?>
+      <div class="posts">
         <?php foreach ($posts as $post): ?>
           <article class="post">
             <header class="post_header">
-              <a class="post_link" href="#TODO">
+              <a class="post_link" href="<?=$post->link?>">
                 <h3 class="post_title"><?=$post->title?></h3>
                 <time class="post_date"><?=$post->date?></time>
               </a>
@@ -25,10 +24,8 @@ $this->layout()->breadcrumbs = false;
             <p class="post_excerpt"><?=$post->excerpt?></p>
           </article>
         <?php endforeach; ?>
-      <?php else: ?>
-        // TODO: Handle missing or invalid posts file
-      <?php endif; ?>
-    </div>
+      </div>
+    <?php endif; ?>
   </div>
 
   <div class="flex_1">
-- 
GitLab