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>";

View File

@@ -18,7 +18,8 @@ if ($post === NULL) httpError(404, 'blogpost not found');
<title>Mikescher.com - Blog</title>
<meta name="google-site-verification" content="pZOhmjeJcQbRMNa8xRLam4dwJ2oYwMwISY1lRKreSSs"/>
<link rel="icon" type="image/png" href="/data/images/favicon.png"/>
<link rel="stylesheet" href="/data/css/styles.css"/>
<link rel="stylesheet" href="/data/css/styles.css"/>
<link rel="canonical" href="<?php echo $post['canonical']; ?>"/>
</head>
<body>
<div id="mastercontainer">