whitebearcode / typecho-bearsimple Goto Github PK
View Code? Open in Web Editor NEW一款简洁大方的Typecho主题
License: GNU General Public License v3.0
一款简洁大方的Typecho主题
License: GNU General Public License v3.0
BSCore 插件版本 v2.1.5-release
主題版本 v2.1.5-release
设置外观是就出现 Database Query Error 报错
自己给自己开个issue,年纪大了容易健忘- -
开启版权声明出现报错
原因:有方法没写
这个东西是给微信黑色模式吗?如果的话,怎么下载?
谢谢
我想给自己的网站添加 https://github.com/zkz098/mihoyoemoji 里的表情,请问我该怎么做?
默认是在本页面加载, 但至少我希望能够实现 _blank 这样在新选项卡内打开的方式, 不如直接添加了打开位置编辑的功能吧
可以更换为这种解析方式
地址|名称|位置
https://github.com/whitebearcode/typecho-bearsimple|GitHub|_blank
其中位置可缺省, 这样就兼容旧版本配置信息, 默认在本页面跳转
因为当前主流至少是1080的屏,甚至更大的2K、4K,目前的宽度只占了屏幕中间一块,两边有些浪费;能调宽一些吗?CSS看起来太乱,不敢随意更改。
即点击主题基础设置里面的上传LOGO、图标等上传按钮,选择媒体库内的文件,无论选择哪一个最后都是选择成了第一个文件
BearSimple主题版本:V2.3.9.20230918[更新日志]
PHP版本:7.4.33
网站服务器:nginx/1.24.0
数据库:Pdo_SQLite[Version:3.43.1]
Typecho版本:1.2.1
User Agent信息:Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36 Edg/117.0.2045.36
进入站点白屏,进入切换主题页面无法显示主题,也没有debug输出
当后台设置了“评论不需要审核”,评论发表完后建议增加局部刷新文章,让文章隐藏内容显示出来。现在的逻辑是只刷新评论区,文章区不会刷新,只能自己去刷新网页才能看到隐藏内容。假如我是读者,不知道的会感觉受到了欺骗,会离开网页而不是去手动刷新。
当插入短代码登录或回复后可见,现在显示的是“此处内容需要登录或评论回复 (审核通过) 后方可显示”,可以删除掉审核通过这几个字。或者可以和后台设置联动,当设置成“评论需要审核”那就显示“此处内容需要登录或评论回复 (审核通过) 后方可显示”,如果后台没开启评论审核,那就显示“此处内容需要登录或评论回复后方可显示”;或者直接做成可以自定义显示的内容。
上述是细节建议,希望考虑,我感觉这这有助于提升访客的停留率,比如1访客留言了,但没看到隐藏内容显示,就走了;比如2很多人看到留言需要审核就跑了,实际上是不需要审核。
错误信息:
Call to undefined function curl_init()
系统:
Ubuntu 18.04
PHP 7.4-fpm
Nginx
Typecho 1.2
主题的js、css是被压缩过的,有没有未压缩的文件,请开源出来
你好请问下是我本地环境有问题吗?
因为我在Chrome 、Firefox 、手机EDGE浏览器上试了都是这样。
编辑:开全局代理正常显示,请问有解决办法吗?
Access to CSS stylesheet at 'https://cdn.staticfile.org//font-awesome/5.15.4/css/v4-shims.min.css?ver=5.15.4' from origin 'https://bearsimple.typecho.ru' has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header has a value 'https://rumosky.com' that is not equal to the supplied origin.
Chrome 版本 121.0.6167.8(正式版本)beta (64 位)
Firefox 120.0.1 64位
前端搜索栏中进行搜索时,结果中会出现应该隐藏的文章内容。
这有暴露博主隐私的风险,也会极大影响搜索体验。
数据库用的sqlite
php 7.4
主题版本2.0.8
New Features:
当敏感词条数过多时(比如上千条),网站性能下降严重
希望可以优化下敏感词检测
就如评论区那样可以输入解析表情;还有对于存储位置选择自定义存储时,自己新增的小表情在评论区中的解析依旧是博主的cdn链接
php版本7.3,typecho版本1.2,右侧博主信息不显示。
访问首页出现:
in_array(): Argument #2 ($haystack) must be of type array, string given
可以使用以下代码来实现:
.goTop:hover { transform: scale(1.05) !important; transition: 0.2s !important }
.goTop:active { transform: scale(0.95) !important; transition: 0.1s !important }
我注意到主题的header头部信息是直接使用的<?php $this->header(); ?>
,这是不安全的,因为这会输出许多敏感信息。例如:Typecho版本、Temaple等敏感信息。这对于爬虫来说是很好的餐前甜点。
Typecho的header头部信息方法存放于 /var/Widget/Archive.php
public function header($rule = NULL)
{
$rules = array();
$allows = array(
'description' => htmlspecialchars($this->_description),
'keywords' => htmlspecialchars($this->_keywords),
'generator' => $this->options->generator,
'template' => $this->options->theme,
'pingback' => $this->options->xmlRpcUrl,
'xmlrpc' => $this->options->xmlRpcUrl . '?rsd',
'wlw' => $this->options->xmlRpcUrl . '?wlw',
'rss2' => $this->_feedUrl,
'rss1' => $this->_feedRssUrl,
'commentReply' => 1,
'antiSpam' => 1,
'atom' => $this->_feedAtomUrl
);
官方推荐的更改header信息的方法:https://docs.typecho.org/themes/custom-header-output
也就是将<?php $this->header(); ?>
改为<?php $this->header('generator=&template=&pingback=&xmlrpc=&wlw=&atom='); ?>
以隐藏这些信息。
按要求把文件放入theme和plugin文件夹后,点击启用,报如下错误
Class 'Utils\Helper' not found
tpyecho1.2 and BearSimple V1.6.8
站内跳转时音乐会重新播放
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.