Credit: NichtsHsu Personal blog based on Chirpy theme customization, click here to enter.
Differences from the original Chirpy:
-
On the original supported commenting systems Disqus, Utterances and Giscus, add support for Valine / Waline comment system, see
_config.yml
comments` and their respective configuration sections. It is recommended to consider using Waline instead of Valine. -
Using Zhihu-style 404 interface, you can return to the home page or return to the previous page.
-
Added sharing to Line, QQ, Qzone and Weibo, see
_data/share.yml
. -
Use iconfont instead of Font Awesome, there are more icon options, see
_config.yml
iconfont_css`. -
Added external links block to the right sidebar, see
_data/external_links.yml
. -
Freely control which blocks are displayed on the right sidebar in the post. See
panel
in_config.yml
. -
Added subdomain page. See
_data/subdomain.yml
. Just delete_tabs/subdomain.md
if you don't need this page. -
Added the style of
<details>
tag and modified the style of blockquote. -
Use table styles adapted from
just the docs
. -
Applied code coloring to inline code segments, e.g.
`let fuck_rust = 114514;`{:.language-rust}
. -
Use Fira Code as the code snippet font. By default, Ligature is not enabled for inline code, but is enabled for block code. Siamese is disabled in shell languages for some reason.
-
In the dark theme, the title and bold content are indistinguishable in the white text, and the glow effect is added to highlight it.
-
Can configure to highlight certain lines in the code segment, refer to here.
-
To run the code to display the output (under development, some languages are currently supported), you need to add
{: run="lang" }
to the next line of the code segment, for example:```rust fn main() { println!("hello world"); }
{: run="rust" }
Language support: | Supported languages | `run="lang"` parameter | backend | | :-: | :-: | :-: | | C++ | `run="cpp"` | [Coliru](https://coliru.stacked-crooked.com/) | | JavaScript | `run="javascript"` | N/A (local) | | Rust | `run="rust"` | [Rust Playground](https://play.rust-lang.org/) |
If you like my customized version, welcome to Fork, but please modify the id
of google_analytics
in _config.yml
, the server
of waline
, and the domain name configured in the CNAME
file, please do not use my configuration.
Typically, upstream/master
is merged at least once a week to track new features.
The original version of Chirpy will also be kept in sync in the original-chirpy branch.