Skip to content

Commit

Permalink
🔨 修复 评论显示为关时无封面类型首页依旧显示评论数量问题 (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
bhaoo committed Nov 23, 2023
1 parent 220da94 commit 36f379c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,11 @@
<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 $this->commentsNum('0 条评论', '1 条评论', '%d 条评论'); ?></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>';
} ?>
Expand Down

0 comments on commit 36f379c

Please sign in to comment.