Improve the TOC

Even in posts collections page, create the TOC as long as its in full post mode.
This commit is contained in:
danpros 2024-02-21 11:21:26 +07:00
commit 06140ec58c
8 changed files with 19 additions and 15 deletions

View file

@ -49,7 +49,7 @@
<blockquote><?php echo $p->quote ?></blockquote>
</div>
<?php } ?>
<div class="teaser-body" itemprop="articleBody">
<div class="teaser-body post-<?php echo $p->date;?>" itemprop="articleBody">
<?php echo get_thumbnail($p->body) ?>
<?php echo get_teaser($p->body, $p->url) ?>
<?php if (config('teaser.type') === 'trimmed'):?><a href="<?php echo $p->url;?>"><?php echo config('read.more'); ?></a><?php endif;?>