Git Product home page Git Product logo

typecho-theme-sagiri's Issues

1.3.4版本主题无法在Typecho 1.2.0上使用

Describe the bug
Typecho v1.2.0无法使用1.3.4版本主题

To Reproduce
Steps to reproduce the behavior:

  1. release页面下载
  2. 上传到网站目录
  3. 登录Typecho后台,选择外观Sagiri,启用
  4. 显示您选择的风格不存在

Screenshots
If applicable, add screenshots to help explain your problem.
联想截图_20230129204958.png

Desktop (please complete the following information):

  • OS: Windows 11 22H2
  • Browser: Chrome
  • Version 109.0.5414.75

Additional context

  • BT-Panel
  • NGINX-Tegine 2.2.4
  • PHP-7.4.33
  • MySQL 8.0.24

感谢开发这么好看的主题

感谢开发者!
应该说我转到 typecho 就用了这个主题,一直都很喜欢,也一直没换过。
我的博客也一直放在模板里面,由于博客几个月来一直被攻击,所以最后还是选择了 hexo,告别了 sagiri。
也搜了 hexo 的 sagiri,但好像很多年没动过了。
最后还是多谢!

argumen1

打开后显示:
Argument 1 passed to Utils\AutoP::parse() must be of the type string, null given, called in /usr/local/lighthouse/softwares/typecho/var/Widget/Base/Contents.php on line 938
咋回事啊

文章markdown标题可以分级吗

我用markdown语法写的一二三级标题,右边的文章目录显示的时候不能分级,请问有什么方法实现目录中标题分级吗?

Search Error

一点击右上方的搜索框就会显示
Oh, Oooops!
Something went worong.Please try again

列表首项与前行的间距过大问题

同样的,子列表首项与上一级列表的间距也被设定了同样大小的值
如下图,看起来很别扭:
image

对css不太熟悉,不知道修改css哪一段代码可以解决?

文章缩略图不显示

php:错误信息如下
Warning: in_array() expects parameter 2 to be array, null given in \usr\themes\Sagiri\theme-helper.php on line 353

ps:实在抱歉PHP有些生疏,无法自行解决

主题能否增加一个top按钮?

主题用着挺好,感觉就差了个top按钮
我自己用插件加了一个,结果图标一点就变成了图片放大了,没有到顶的功能了
能否增加一个呢?
谢谢!

最新1.15版本异常

下载最新版本更新后发现几个问题:
1.之前的主题1.07版本我正常使用数字验证码现在提示错误,导致主题相关设置不可见
我是在functions.php最后加如下代码,提示function spam_protection_math(){该行出错

function themeInit($comment){
    if ($comment->is('single')) {
        $comment = spam_protection_pre($comment);
    }
}
function spam_protection_math(){
    $num1=rand(1,20);
    $num2=rand(1,20);
    echo "<label for=\"math\">请问 <i>$num1 + $num2 = ?</i></label>\n";
    echo "<input type=\"text\" name=\"sum\" class=\"text\" value=\"\" size=\"25\" tabindex=\"4\" style=\"width:40px\">\n";
    echo "<input type=\"hidden\" name=\"num1\" value=\"$num1\">\n";
    echo "<input type=\"hidden\" name=\"num2\" value=\"$num2\">";
}
function spam_protection_pre($commentdata){
    $sum=$_POST['sum'];
    switch($sum){
        case $_POST['num1']+$_POST['num2']:
            break;
        case null:
            throw new Typecho_Widget_Exception(_t('请输入验证码'));
            break;
        default:
            throw new Typecho_Widget_Exception(_t('验证码错误,请重新输入'));
    }
    return $commentdata;
}

2.删除上面的代码后,可以进入主题设置,设置页面顶部提示如下

Warning: Illegal offset type in isset or empty in /www/wwwroot/test.mxzhi.com/var/Typecho/Widget/Helper/Form/Element/Radio.php on line 73

3.不修改任何设置,访问主页,页面排版没有了,随便选择几个主题设置选项,无任何改变

php8会出现Deprecated:Required parameter $content follows optional parameter ShasLogin in的问题

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

评论排列问题

Is your feature request related to a problem? Please describe.
正序时间排列导致最新评论被埋没
查找最新评论时间较长
不符合操作习惯
Describe the solution you'd like
推荐改为倒序时间排列或者可选倒序时间排列

Describe alternatives you've considered

Additional context

代码块的首行错位问题

一直发现代码块的首行和其他的行对不齐,不知道问题出在哪。
我在 index.min.css 文件里加了个就好了:

pre code {
    display: block;
    background: 0 0;
    padding: 2px 2px;
}

支持多级分类展示

建议支持一下多级分类的前端展示,目前自带的category页面,无法展示一级以上分类的分类递进关系,而且文章如果归属于第二级分类,文章会在最上面先出现一次,效果有点魔幻。

header.php

header.php 第107行少了单引号,导致warrning。

希望增加一个填写备案号的地方

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.
image
像这样

最新版主题PV记录有问题

从原来的老版本跳到新版本后,博客所有文章浏览量都归零了(使用Access插件在后台还是能看到),但是随便点击一篇文章后,所有的文章浏览量都会+1。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.