PhpDev.App
shiyiya/typecho-theme-sagiri

shiyiya/typecho-theme-sagiri

Stars: 245

Forks: 33

Pull Requests: 42

Issues: 30

Watchers: 4

Last Updated: 2023-06-04 04:40:13

🍰 As lovely as sagiri

License:

Languages: PHP, CSS, SCSS, JavaScript

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

OPEN ISSUES

See all