I’m new here, so please be kind!
I would like to count the number of articles in the Opinion (Blog) section of my site, then return the article number to add as a pre-fix to its title. Example design below:
This how I am displaying the article list at the moment:
<span><b><?= $article->date('F jS, Y') ?></b></span> <p class="lead unmarg"><a href="<?= $article->url() ?>"><?= $article->title()->html() ?></a> </p> <p><?= $article->text()->kirbytext()->excerpt(50, 'words') ?></p>
Any help massively appreciated. Thanks.