Skip to content

Commit 6b51d33

Browse files
committed
fix: 多了()无法输出文章图片
1 parent 1ec165c commit 6b51d33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

component/post.content.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
22
<section class="article-info">
33
<div class="article-cover-inner">
4-
<img src="<?= $this->fields->banner()?: utils::indexTheme('assets/img/default.jpg') ?>" alt="cover">
4+
<img src="<?= $this->fields->banner?: utils::indexTheme('assets/img/default.jpg') ?>" alt="cover">
55
<h1 class="article-title">
66
<?php if ($this->user->hasLogin()): ?>
77
<a class="article-edit" title="编辑"

0 commit comments

Comments
 (0)