1
0

aoc link to github pages

This commit is contained in:
2020-01-09 12:50:08 +01:00
parent a6539cf081
commit 3968a11fa6
7 changed files with 24 additions and 12 deletions

View File

@@ -2,6 +2,7 @@
require_once (__DIR__ . '/../internals/base.php');
require_once (__DIR__ . '/../internals/blog.php');
require_once (__DIR__ . '/../internals/adventofcode.php');
require_once (__DIR__ . '/../internals/ParsedownCustom.php');
$year = $post['extras']['aoc:year'];
@@ -20,10 +21,11 @@ $year = $post['extras']['aoc:year'];
</div>
<div class="bc_data">
<?php echo nl2br(htmlspecialchars(Blog::getPostFragment($post))); ?>
<?php
$pd = new ParsedownCustom();
echo $pd->text(Blog::getPostFragment($post));
?>
<br/>
<?php
global $PARAM_AOCCALENDAR;
$PARAM_AOCCALENDAR = ['year' => $year, 'nav'=>true, 'linkheader'=>false, 'ajax'=>false];