-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: 文章页公告无法关闭 #47
Comments
(前面的closed是按错的) |
在post_sidebar.php中,公告部分添加php判断 <?php if (!empty($this->options->sidebarBlock) && in_array('ShowAnnounce', $this->options->sidebarBlock)): ?>
<div class="card-widget card-announcement"><div class="item-headline">
<i class="fas fa-bullhorn card-announcement-animation"></i><span>公告</span></div>
<div class="announcement_content"><?php $this->options->announcement() ?></div></div>
<?php endif; ?> |
测试成功 |
新版本已修复 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
是否从release页下的主题? | Is the theme download from Release Page?
是 (Yes)
使用的 Butterfly 版本? | What version of Butterfly are you use?
1.7.3
是否修改过主题文件? | Has the theme files been modified?
不是 (No)
使用的浏览器? | What browse are you using?
Chrome
博客的运行环境? | What the running environment of the blog?
linux|php8.0+|typecho1.2|sqlite|nginx
问题描述 | Describe the bug
typecho用的是1.2 开发版
在后台已关闭侧边栏显示公告,文章页的侧边栏显示也全部关闭,可在文章页还是能看见公告,但在主页就没有
这是我的文章页 这是主页
另附后台设置截图
文章页截图
The text was updated successfully, but these errors were encountered: