summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorEltrac Koalar <hi@guhub.cn>2022-09-18 20:11:13 +0800
committerEltrac Koalar <hi@guhub.cn>2022-09-18 20:11:13 +0800
commit240637726201ddadbe23fb24ef4a95f0b4dca79b (patch)
treed9029ecf258446eafdef9da4ef9dae1d759b1b32 /includes
parent29359064f7caad63e5afe86516347d00349465ec (diff)
:link: Add: 文章缩略图可点击
Diffstat (limited to 'includes')
-rw-r--r--includes/post-list.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/post-list.php b/includes/post-list.php
index 89fc08f..c774ceb 100644
--- a/includes/post-list.php
+++ b/includes/post-list.php
@@ -22,7 +22,7 @@
</div>
</div><?php if($this->fields->thumbnail!=''): ?>
<div class="post-thumbnail" md-hidden>
- <img class="lazy" data-src="<?php $this->fields->thumbnail(); ?>">
+ <a href="<?php $this->permalink() ?>"><img class="lazy" data-src="<?php $this->fields->thumbnail(); ?>"></a>
</div><?php endif;?>
</article>
<?php endwhile; ?>