diff options
| author | Eltrac Koalar <hi@guhub.cn> | 2022-09-18 18:13:40 +0800 |
|---|---|---|
| committer | Eltrac Koalar <hi@guhub.cn> | 2022-09-18 18:13:40 +0800 |
| commit | 5a97e32a7fb9e783a1d584f496e341ab8ab6cc6a (patch) | |
| tree | c59bf461965310750d27e1bb9b43501dec153629 /includes | |
| parent | 9167e440eec1967686165313f36dba26cb9711db (diff) | |
:green_book: Perf: 优化文章缩略图的实现方式
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 f9da68a..89fc08f 100644 --- a/includes/post-list.php +++ b/includes/post-list.php @@ -8,7 +8,7 @@ ), '', ''); ?></h3><?php } ?> <!-- 文章列表 --> <?php while($this->next()): ?> - <article class="post post-atmain" itemscope itemtype="http://schema.org/BlogPosting"> + <article class="post post-atmain<?php if($this->fields->thumbnail!='') echo ' post-with-thumbnail'; ?>" itemscope itemtype="http://schema.org/BlogPosting"> <div class="post-text"> <h2 class="post-title" itemprop="name headline"><a itemprop="url" href="<?php $this->permalink() ?>"><?php $this->sticky(); $this->title() ?></a></h2> <ul class="post-meta"> |
