1
0
Fork 0

[FIX] blog tag filter (function name collision)

This commit is contained in:
Jannik Beyerstedt 2021-01-30 23:47:05 +01:00
parent 2d714c2393
commit d61fd44ed1
3 changed files with 8 additions and 6 deletions

View file

@ -7,7 +7,7 @@
// -------------------------------------------
$base_url = $site->find('blog')->url();
function tags($base_url, $article) {
function tags_html($base_url, $article) {
$tags = explode(',',(string)$article->tags());
if (!empty($tags[0])) {
@ -43,7 +43,7 @@ snippet('base/cont-header');
<div class="meta bottom">
<time datetime="<?php echo $page->date()->toDate('Y-m-d') ?>"><?php echo $page->date()->toDate('d. M. Y') ?></time>
<?php echo tags($base_url, $page); ?>
<?php echo tags_html($base_url, $page); ?>
</div>
</article>