1
0

blogview_markdown

This commit is contained in:
2017-12-30 23:46:27 +01:00
parent c4aa27a708
commit bb28fd3b6d
13 changed files with 1673 additions and 23 deletions

View File

@@ -32,8 +32,8 @@ $allposts = Blog::listAllOrderedDescending();
{
if (!$post['visible']) continue;
if ($post['cat']=='blog') echo "<a class='bloglistelem ble_blog' href='/blog/" . $post['id'] . "/" . urlencode($post['title']) . "'>";
else if ($post['cat']=='log') echo "<a class='bloglistelem ble_log' href='/log/" . $post['id'] . "'>";
if ($post['cat']=='blog') echo "<a class='bloglistelem ble_blog' href='" . $post['url'] . "'>";
else if ($post['cat']=='log') echo "<a class='bloglistelem ble_log' href='" . $post['url'] . "'>";
echo "<div class='ble_date'>" . $post['date'] . "</div>";
echo "<div class='ble_title'>" . $post['title'] . "</div>";
echo "</a>";