diff options
| author | Eltrac Koalar <hi@guhub.cn> | 2022-09-18 20:11:13 +0800 |
|---|---|---|
| committer | Eltrac Koalar <hi@guhub.cn> | 2022-09-18 20:11:13 +0800 |
| commit | 240637726201ddadbe23fb24ef4a95f0b4dca79b (patch) | |
| tree | d9029ecf258446eafdef9da4ef9dae1d759b1b32 /includes | |
| parent | 29359064f7caad63e5afe86516347d00349465ec (diff) | |
:link: Add: 文章缩略图可点击
Diffstat (limited to 'includes')
| -rw-r--r-- | includes/post-list.php | 2 |
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; ?> |
