💄 (theme/default) Use location title/description

This commit is contained in:
Kazhnuz 2025-07-13 19:20:11 +02:00
parent eeaee2baae
commit 25cf8ef5be

View file

@ -2,8 +2,12 @@
<div>
<?php $language->p('No pages found') ?>
</div>
<?php else : ?>
<h2><?php echo Theme::locationTitle(); ?></h2>
<p><?php echo Theme::locationDescription(); ?></p>
<?php endif ?>
<div class="article-list"><?php foreach ($content as $page) : ?>
<!-- Post -->
<article>
@ -11,9 +15,9 @@
<?php Theme::plugins('pageBegin'); ?>
<!-- Title -->
<h2 class="title">
<h3 class="title">
<a href="<?php echo $page->permalink(); ?>"><?php echo $page->title(); ?></a>
</h2>
</h3>
<!-- Cover image -->
<?php if ($page->coverImage()) : ?>
@ -35,7 +39,7 @@
<a class="button-link" href="<?php echo $page->permalink(); ?>"><?php echo $L->get('Read more'); ?></a>
</p>
<?php endif ?>
<div class="flex p" id="tag-category-list">
<div id="category-list">
<a href="<?php echo $page->categoryPermalink(); ?>" class="category pill"><?php echo $page->category(); ?></a>