54 lines
1.4 KiB
PHP
54 lines
1.4 KiB
PHP
|
<?php Theme::plugins('pageBegin'); ?>
|
||
|
<article class="card">
|
||
|
<header>
|
||
|
<h2><a href="<?php echo $page->permalink(); ?>"><?php echo $page->title(); ?></a></h2>
|
||
|
<div class="flex">
|
||
|
<div>
|
||
|
<span>
|
||
|
<a class="badge" href="<?php echo $page->categoryPermalink(); ?>">
|
||
|
<svg class="icon" alt="">
|
||
|
<use xlink:href="#icon-folder"></use>
|
||
|
</svg>
|
||
|
<?php echo $page->category(); ?>
|
||
|
</a>
|
||
|
</span>
|
||
|
<?php
|
||
|
foreach ($page->tags(true) as $x => $y) {
|
||
|
?>
|
||
|
<span>
|
||
|
<a class="badge" href="<?php
|
||
|
$tagObject = new Tag($x);
|
||
|
echo print_r($tagObject->permalink());
|
||
|
?>" class="btn btn-small c-secondary">
|
||
|
<svg class="icon" alt="">
|
||
|
<use xlink:href="#icon-tags"></use>
|
||
|
</svg>
|
||
|
<?php echo $y; ?>
|
||
|
</a>
|
||
|
</span>
|
||
|
<?php
|
||
|
}
|
||
|
?>
|
||
|
</div>
|
||
|
<div>
|
||
|
|
||
|
<?php if (!$page->isStatic() && !$url->notFound()): ?>
|
||
|
<span class="badge">
|
||
|
<?php echo $page->date('j/m/Y') ?>
|
||
|
</span>
|
||
|
|
||
|
<span class="badge">
|
||
|
<?php echo $page->readingTime() ?>
|
||
|
</span>
|
||
|
<?php endif ?>
|
||
|
</div>
|
||
|
</div>
|
||
|
</header>
|
||
|
|
||
|
|
||
|
<?php if ($page->coverImage()): ?>
|
||
|
<div class="preview-thumbnail"> <img alt="" src="<?php echo $page->coverImage(); ?>" /> </div>
|
||
|
<?php endif ?>
|
||
|
<div class="preview-excerpt" aria-excerpt="true"><?php echo $page->content(); ?></div>
|
||
|
</article>
|
||
|
<?php Theme::plugins('pageEnd'); ?>
|