Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

typecho-theme-sagiri

shiyiya60ISC1.2.2

Lovely theme for Typecho.

typecho-theme

readme

Sagiri

As lovely as sagiri

Preview | Documentation | Download | (CN DOC) 中文文档

PJAX Version | Change Log | Donate 捐赠支持

As lovely as sagiri, based on hexo-theme-sagiri

stars npm jsdelivr license donate

Demo

shot

Installation

  1. Download from releases to your blog's theme folder.
  2. Enable it in the background management, if an error occurs, rename the folder to sagiri

  3. 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.

  • <input disabled="" type="checkbox"> Instantclick
  • <input checked="" disabled="" type="checkbox"> Code Highlight
  • <input disabled="" type="checkbox"> Lazy load Image
  • <input checked="" disabled="" type="checkbox"> Short Code
  • <input disabled="" type="checkbox"> OwO (Comment Emoji)

Code Highlight

Using Prism.js as code highlighting. sagiri default comes with 5 themes & supported 32 language, if you need more, just go here to download.

Special Page

  • Create Page.

  • Select the corresponding template and fill in the correct path and turn off "allow commomt"

search.html Without restriction archive.html category.html

Multi-language

Short Code

  • video Short Code

    - bilibili video
      [bplayer](https://www.bilibili.com/video/av68718423)
    
    - local video
      [lplayer](/usr/uploads/2019/11/330578098.mp4)
    
    - youtube video
      [yplayer](https://www.youtube.com/watch?v=wv1bHjMGUBY)

    will render video shot

  • ...

Others

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

    ⬇ ⬇ ⬇ example (Article content)

    ## 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

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

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

Comment Emoji

How to import custom Emoji ?

Author

typecho-theme-sagiri © shiyi, Released under the GPL-3.0 License.
Authored and maintained by DIYgod with help from contributors (list).

· GitHub @shiyi

Thank you for your support :-)

Contribute

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

Contribute List

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

changelog

[F] Fix Bug. [S] Style Change. [A] Add Feature. [U] Update Config. [Doc] Update DOC.

2020/7/10 (V1.2.1)

  • [S] timeline page style changed.
  • [F] ribbons not work.

2020/7/10 (V1.2.0)

  • [F] #36 添加 bv 解析

2020/5/18 (V1.1.4)

  • pjax
    • owo
    • ribbons

version tag in candy branch

2019/11/23

[F] #27

  • php5 not support <?

2019/11/7

[A]: add instantclick [DOC]: CN README

2019/11/4

[S] video style at mobile. [F] Change the distance of scroll2post(-50px).

2019/11/4

[A] Add video Short Code Support.

2019/11/3

[A] You need add the truncation <!-- more --> control output (Home Article & ...).

2019/11/3 (V1.1.4)

  • [S] replace Site Title animation. 移除 Title 动画。
  • [S] Banner height -> 550px -> 350px (PC)
  • [F] fix topView post order.

2019/11/2

  • [F] Fix when the article title is too much, the Toc display error(layout). 修复文章标题过多时,目录显示错位
  • [A] add jp & zh_tw lang.
  • [F] Replace DB insert with typecho custom field. 使用自定义字段替换数据库操作(不会破坏原有数据库结构)
  • [F] fix site title position (mobile)

2018/10/13 v1.1

  • [U]: 重构 JS

2018/5/2 v1.0.3

  • [remove]: remove auto load article & unused code & DNS Prefetch .

2018/5/1

  • fix #17
  • configurable article thumbnails.

2018/2/11

-[fix]图片懒加载

2018/1/28

  • [fix] header 头配置错误。
  • [feature] 可选 banner 是否显示。
  • [bug]fix any bugs.

2018/10/30

  • 修复 archive 页下缩略图问题
  • 调整标题前置 # 位置
  • 添加块级代码背景颜色
  • 更改友链样式
  • 其他颜色协调性修正
  • Readme 文档更新

2018/11/5

  • 图片懒加载
  • 目录树更换获取方式(浪费性能,暂不支持嵌套目录
  • 文章侧栏相关文章添加
  • gulp 配置更改,路径引用使用 min 文件
  • 其他

2018/11/18

  • [feature]图片懒加载 background-image 方式加载错位 --> 自适应
  • [feature]侧栏热门文章、热评文章添加
  • [feature]supported >= ie10
  • [fix]修复手机头部滑动到文章内容背景距离错误 500 --> 200
  • [fix]修复文章卡片内容超出 --> ...
  • [fix]修复浏览量 php7+ 不显示,自定义字段 --> insert Db //与旧方法不兼容
  • [fix]禁止评论不加载 OwO 表情

2018/12/09

  • [feature]Fastclick ——FastClick is a simple, easy-to-use library for eliminating the 300ms delay between a physical tap and the firing of a click event on mobile browsers.
  • [feature]指定一个图片链接作为头图。
  • [bug]fix any bugs.

todo