fix: corrige les images miniatures
All checks were successful
continuous-integration/drone Build is passing

This commit is contained in:
Kazhnuz 2024-06-10 17:06:40 +02:00
parent 5487c753ab
commit d09cde08b0
2 changed files with 3 additions and 3 deletions

View file

@ -34,8 +34,8 @@
<?php if ($page->type() != "sticky") : ?> <?php if ($page->type() != "sticky") : ?>
<a href="<?php echo $page->permalink(); ?>" class="preview"> <a href="<?php echo $page->permalink(); ?>" class="preview">
<div class="preview-thumbnail"> <div class="preview-thumbnail">
<?php if ($page->coverImage()) : ?> <?php if ($page->thumbCoverImage()) : ?>
<img alt="" src="<?php echo $page->coverImage(); ?>" /> <img alt="" src="<?php echo $page->thumbCoverImage(); ?>" />
<?php else : ?> <?php else : ?>
<img alt="" src="<?php echo HTML_PATH_THEME_IMG; ?>/default-preview.png" /> <img alt="" src="<?php echo HTML_PATH_THEME_IMG; ?>/default-preview.png" />
<?php endif ?> <?php endif ?>

View file

@ -4,7 +4,7 @@
<h1 class="page-title"><?php echo $page->title(); ?></h1> <h1 class="page-title"><?php echo $page->title(); ?></h1>
<?php if ($page->coverImage()): ?> <?php if ($page->coverImage()): ?>
<div class="thumbnail mb-half" aria-hidden="true"> <div class="thumbnail mb-half" aria-hidden="true">
<img alt="" src="<?php echo $page->thumbCoverImage(); ?>"/> <img alt="" src="<?php echo $page->coverImage(); ?>"/>
</div> </div>
<?php endif ?> <?php endif ?>
<?php if (!$page->isStatic() && !$url->notFound()): ?> <?php if (!$page->isStatic() && !$url->notFound()): ?>