Hi,
I am building a template with a list of blog entries:
<?php foreach($articles = $page->children()->listed()->flip()->paginate(6) as $article): ?>
<div>
<a class="link" href="<?= $article->url() ?>"><h2 class="blog-header"><?= $article->title()->html() ?></h2></a>
<div class="date"><?= $article->published()->toDate('%d. %m. %Y') ?></div>
<?= $article->image() ?>
<p class="text"><?= $article->text()->excerpt(300) ?></p>
<a href="<?= $article->url() ?>" class="more-button">Mehr lesen</a>
</div>
<?php endforeach ?>
what works so far. My question is how to put an unique img class inside the image selection.
Thanks Stefan