This repository has been archived on 2024-04-03. You can view files and clone it, but cannot push or open issues or pull requests.
2022-12-18 13:48:49 +01:00
|
|
|
<?php while(have_posts()) : the_post(); ?>
|
2023-05-01 23:22:33 +02:00
|
|
|
<a href="<?php the_permalink(); ?>" class="preview">
|
|
|
|
|
2022-12-18 13:48:49 +01:00
|
|
|
<div class="preview-thumbnail">
|
2023-05-01 23:22:33 +02:00
|
|
|
<?php the_post_thumbnail( ); ?>
|
2022-12-18 13:48:49 +01:00
|
|
|
</div>
|
|
|
|
<div class="preview-text">
|
2023-05-01 23:22:33 +02:00
|
|
|
<h2><?php the_title(); ?></h2>
|
2022-12-18 13:48:49 +01:00
|
|
|
|
|
|
|
<div class="flex-that">
|
|
|
|
<div>
|
|
|
|
<?php
|
|
|
|
if (!has_category('chapters')) {
|
|
|
|
$category = get_the_category();
|
2023-11-20 10:05:50 +01:00
|
|
|
echo"<span class='badge c-secondary small-text m-0'>" . $category[0]->cat_name . "</span>";
|
2022-12-18 13:48:49 +01:00
|
|
|
}
|
|
|
|
?>
|
|
|
|
</div>
|
|
|
|
<div>
|
2023-11-20 10:05:50 +01:00
|
|
|
<time><span class="badge c-secondary small-text m-0"><?php the_time('d/m/Y') ?></span></time>
|
2022-12-18 13:48:49 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2023-11-24 20:23:34 +01:00
|
|
|
<div class="preview-excerpt"><?php the_excerpt(); ?></div>
|
2022-12-18 13:48:49 +01:00
|
|
|
</div>
|
2023-05-01 23:22:33 +02:00
|
|
|
</a>
|
2022-12-18 13:48:49 +01:00
|
|
|
<?php endwhile; ?>
|