Skip to content
Snippets Groups Projects
Commit d258eee4 authored by Aspectis's avatar Aspectis Committed by Robert Lange
Browse files

refs #19118 [fid_bbi] add links to posts

parent 2c3932da
Branches
Tags
No related merge requests found
......@@ -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">
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment