Compare commits

...

4 commits

Author SHA1 Message Date
Kazhnuz
6bce7a9127 🐛 | Restore les preview en liste dans les categories, tag & recherche
All checks were successful
continuous-integration/drone Build is passing
2024-11-30 17:47:11 +01:00
Kazhnuz
affba305bc 🐛 | Ajoute un preview-small oublié 2024-11-30 17:46:06 +01:00
Kazhnuz
90b16d01ff 💩 | Harcode de l'avatar pour ne plus en avoir un de >400ko 2024-11-30 17:44:01 +01:00
Kazhnuz
f44df1040b ️ | Amelioration perf miniature par défaut 2024-11-30 17:41:15 +01:00
10 changed files with 10 additions and 9 deletions

Binary file not shown.

BIN
img/avatar/admin/ava128.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 8.9 KiB

View file

@ -6,7 +6,7 @@
echo $category->name();
?>
</h1>
<div class="previews-section preview-grid">
<div class="previews-section preview-list">
<?php foreach ($content as $page) : ?>
<?php if ($page->type() != "sticky") : ?>
<div class="h-entry">
@ -15,7 +15,7 @@
<?php if ($page->thumbCoverImage()) : ?>
<img alt="" src="<?php echo $page->thumbCoverImage(); ?>" class="u-photo" />
<?php else : ?>
<img alt="" src="<?php echo HTML_PATH_THEME_IMG; ?>/default-preview.png" class="u-photo" />
<img alt="" src="<?php echo HTML_PATH_THEME_IMG; ?>/default-preview-small.png" class="u-photo" />
<?php endif ?>
</div>
<div class="preview-text">

View file

@ -11,7 +11,7 @@
<?php if ($page->type() == "sticky") : ?>
<article class="preview-featured h-entry">
<a href="<?php echo $page->permalink(); ?>" class="preview-link u-url">
<img src='<?php echo ($page->thumbCoverImage() ? $page->thumbCoverImage() : HTML_PATH_THEME_IMG . "/default-preview.png") ?>' class="d-none u-photo">
<img src='<?php echo ($page->thumbCoverImage() ? $page->thumbCoverImage() : HTML_PATH_THEME_IMG . "/default-preview-small.png") ?>' class="d-none u-photo">
<div class="preview-item" style="background-image:url('<?php echo ($page->thumbCoverImage() ? $page->thumbCoverImage() : HTML_PATH_THEME_IMG . "/default-preview.png") ?>');">
<div class="preview-overlay">
<div class="preview-categories">
@ -39,7 +39,7 @@
<?php if ($page->thumbCoverImage()) : ?>
<img alt="" src="<?php echo $page->thumbCoverImage(); ?>" class="u-photo" />
<?php else : ?>
<img alt="" src="<?php echo HTML_PATH_THEME_IMG; ?>/default-preview.png" class="u-photo" />
<img alt="" src="<?php echo HTML_PATH_THEME_IMG; ?>/default-preview-small.png" class="u-photo" />
<?php endif ?>
</div>
<div class="preview-text">

View file

@ -29,7 +29,8 @@
<aside class="card card-noheader article-meta">
<div class="card-body">
<div class="author-area p-author h-card">
<img alt="" src="<?php echo $page->user('profilePicture');?>" srcset="https://secure.gravatar.com/avatar/8a4aed71aeec9f65c9e098d81ff12638?s=240&amp;d=mm&amp;r=g 2x" class="avatar avatar-120 photo" height="120" width="120" decoding="async"> <div class="author-metadata">
<img alt="" src="<?php echo HTML_PATH_THEME_IMG; ?>/admin/ava128.jpg" srcset="https://secure.gravatar.com/avatar/8a4aed71aeec9f65c9e098d81ff12638?s=240&amp;d=mm&amp;r=g 2x" class="avatar avatar-120 photo" height="120" width="120" decoding="async">
<div class="author-metadata">
<div class="author-pseudo">Écrit par <a href="https://kazhnuz.space" class="u-url p-name"><?php echo $page->user('nickname'); ?></a></div>
<small class="p-note"><?php echo print_r($page->user('firstName'), TRUE); ?></small>
</div>

View file

@ -5,7 +5,7 @@
echo "Recherche pour « " . $title[1] . " »";
?>
</h1>
<div class="previews-section preview-grid">
<div class="previews-section preview-list">
<?php foreach ($content as $page) : ?>
<?php if ($page->type() != "sticky") : ?>
<div class="h-entry">
@ -14,7 +14,7 @@
<?php if ($page->thumbCoverImage()) : ?>
<img alt="" src="<?php echo $page->thumbCoverImage(); ?>" class="u-photo" />
<?php else : ?>
<img alt="" src="<?php echo HTML_PATH_THEME_IMG; ?>/default-preview.png" class="u-photo" />
<img alt="" src="<?php echo HTML_PATH_THEME_IMG; ?>/default-preview-small.png" class="u-photo" />
<?php endif ?>
</div>
<div class="preview-text">

View file

@ -6,7 +6,7 @@
echo "Article avec le tag « " . $tag->name() . " »";
?>
</h1>
<div class="previews-section preview-grid">
<div class="previews-section preview-list">
<?php foreach ($content as $page) : ?>
<?php if ($page->type() != "sticky") : ?>
<div class="h-entry">
@ -15,7 +15,7 @@
<?php if ($page->thumbCoverImage()) : ?>
<img alt="" src="<?php echo $page->thumbCoverImage(); ?>" class="u-photo" />
<?php else : ?>
<img alt="" src="<?php echo HTML_PATH_THEME_IMG; ?>/default-preview.png" class="u-photo" />
<img alt="" src="<?php echo HTML_PATH_THEME_IMG; ?>/default-preview-small.png" class="u-photo" />
<?php endif ?>
</div>
<div class="preview-text">