Skip to content

Commit

Permalink
🔨 修复 “无封面”文章在分类中不显示问题
Browse files Browse the repository at this point in the history
fix #133
  • Loading branch information
bhaoo committed Mar 4, 2025
1 parent 2604c86 commit 082687c
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions archive.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,22 @@
</div>
<div class="mdui-card-content mdui-typo"><?php parseContent(parseBiaoQing($this->content)); ?></div>
</div>
<?php } elseif ($this->fields->articleType == "normal") { ?>
<a class="post index-normal" href="<?php $this -> permalink() ?>">
<div class="mdui-card index-card-normal mdui-hoverable">
<div class="mdui-card-primary index-primary-normal">
<div class="mdui-card-primary-title"><?php $this->sticky();$this->title(); ?></div>
<div class="mdui-card-primary-subtitle"><?php $this->date(); ?>
<?php if ($this->options->showComments) {
echo ''; $this -> commentsNum('0 条评论', '1 条评论', '%d 条评论');
} ?>
</div>
<?php if (strlen($this->fields->remark)) {
echo '<div class="mdui-chip mdui-color-theme index-chip-normal"><span class="mdui-chip-title">'.$this->fields->remark.'</span></div>';
} ?>
</div>
</div>
</a>
<?php
}
endwhile; ?>
Expand Down

0 comments on commit 082687c

Please sign in to comment.