Git Product home page Git Product logo

typecho-theme-sagiri's Introduction

Sagiri

As lovely as sagiri

Download | 中文文档 | Donate
As lovely as sagiri, based on hexo-theme-sagiri

@bylin/typecho-theme-sagiri

npm jsdelivr license donate

typecho-theme-sagiri - deprecated

npm jsdelivr

Demo

shot

Installation

  1. Download from release to your blog's theme folder and change the folder name to sagiri.
  2. Enable it in the background management.
  • If you need to update the theme, download the latest version, then overwrite the original file to complete the update, some new features need to be enabled in the background to take effect.
git clone https://github.com/shiyiya/typecho-theme-sagiri.git

Configuration

Most of Feature was off, turn on by yourself.

  • Instantclick
  • Code Highlight
  • Lazy load Image
  • Short Code
  • OwO (Comment Emoji)

Code Highlight

Using Prism.js as code highlighting.

Multi-language

Short Code

  • video Short Code

    - m3u8,flv,mdp,mp4,etc.
      [vplayer](https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8)
    
    - local video
      [lplayer](/usr/uploads/2019/11/330578098.mp4)
    
    - bilibili video
      [bplayer](https://www.bilibili.com/video/BV1UT411t77g)
    
    - youtube video
      [yplayer](https://www.youtube.com/watch?v=wv1bHjMGUBY)
    • ...

Others

  • Index Post Card Home Article Overview The default maximum output is Infinity characters, you can manually add the truncation <!-- more --> control output. more

    ## hello world
    
    <!--more-->
    
    **I will not show it on the single page**
    ~~Can you find me?~~

- Article thumbnail
  weight of the thumbnail: Article field -> The first Upload Image of Article -> Image link in the article -> Random Image

## Link

Create a template before this, the content format is as follows

```markdown
- ![avatar descript](avatar href)[href descript](href)<hr> descript
- [title](href) <hr> descript
- [title](href)
```

## Comment Emoji

How to import custom Emoji ?

- [OwO](https://github.com/DIYgod/OwO)

## Author

**typecho-theme-sagiri** © [shiyi](https://github.com/shiyiya), Released under the [GPL-3.0](./LICENSE) License.<br>
Authored and maintained by DIYgod with help from contributors ([list](https://github.com/shiyiya/typecho-theme-sagiri/contributors)).

> · GitHub [@shiyi](https://github.com/shiyiya)

## Donate

Thank you for your support :-)

- [Donate via Paypal](https://paypal.me/ShiYiYa)

## Contribute

If you feel like to help us build a better Sagiri, you can

- Write a plugin
- [Submit a tutorial](https://github.com/shiyiya/typecho-theme-sagiri/tree/gh-pages)
- [Report a bug | Feature request](https://github.com/shiyiya/typecho-theme-sagiri/issues/new/choose)
- Add a translation
  - [en](https://github.com/shiyiya/typecho-theme-sagiri/blob/master/libray/i18n/lang/en.php)
  - [Japan](https://github.com/shiyiya/typecho-theme-sagiri/blob/master/libray/i18n/lang/ja.php)
  - [zh_tw](https://github.com/shiyiya/typecho-theme-sagiri/blob/master/libray/i18n/lang/zh_TW.php)
  - [zh_CN](https://github.com/shiyiya/typecho-theme-sagiri/blob/master/libray/i18n/lang/zh_CN.php)

## License

The All Html,CSS,JavaScript,and PHP files are licensed under the GNU General Public License v3:

http://www.gnu.org/licenses/gpl-3.0.html

typecho-theme-sagiri's People

Contributors

1013403878 avatar 2096779623 avatar dependabot[bot] avatar dragonflylee avatar shiyiya avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

typecho-theme-sagiri's Issues

评论排列问题

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

Describe alternatives you've considered

Additional context

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

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

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.

最新版主题PV记录有问题

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

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
咋回事啊

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

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

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

感谢开发这么好看的主题

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

文章缩略图不显示

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

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

代码块的首行错位问题

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

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

Search Error

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

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

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
像这样

文章markdown标题可以分级吗

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

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

header.php

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

支持多级分类展示

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

最新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.不修改任何设置,访问主页,页面排版没有了,随便选择几个主题设置选项,无任何改变

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.