诶☝️🤓好不容易整了一个blog自然是要搞点好玩的🤗
短链生成
npm install hexo-abbrlink --save
自动添加abbrlink
文章加密
hexo-blog-encryptnpm install --save hexo-blog-encrypt
1
2
3
4
5
6
7
8
9
10
11---
title: Hello World
tags:
- 作为日记加密
date: 2016-03-30 21:12:21
password: mikemessi
abstract: 有东西被加密了, 请输入密码查看.
message: 您好, 这里需要密码.
wrong_pass_message: 抱歉, 这个密码看着不太对, 请再试试.
wrong_hash_message: 抱歉, 这个文章不能被校验, 不过您还是能看看解密后的内容.
---
文章隐藏
hexo-hide-postsnpm install hexo-hide-posts
好像在只在主页隐藏功能上有点问题!
文字上方注释 Ruby
hexo-ruby-characternpm install hexo-ruby-character --save
1
{% ruby 我喜欢你|fuck you %}
我喜欢你
文字遮盖效果 Spoiler
hexo-spoilernpm install hexo-spoiler --save
1
{% spoiler 我喜欢你 %}
我喜欢你
分栏
hexo-tag-commom
使用教程npm install hexo-tag-common
1
2
3
4
5
6
7
8
9
10
11
12
13{% tabs 测试测试,1 %}
<!-- tab 很遗憾 -->
**你的脑子太小**
<!-- endtab -->
<!-- tab 经考核 -->
**只容得下爱恨**
<!-- endtab -->
<!-- tab 不通过 -->
**容不下数学**
<!-- endtab -->
{% endtabs %}
你的脑子太小
只容得下爱恨
容不下数学
数据可视化工具
hexo-tag-chart
官方文档npm install hexo-tag-chart --save
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21{% chart 80% 300 %}
{
type: 'line',
data: {
labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'],
datasets: [{
label: 'My First dataset',
backgroundColor: 'rgb(255, 99, 132)',
borderColor: 'rgb(255, 99, 132)',
data: [0, 10, 5, 2, 20, 30, 45]
}]
},
options: {
responsive: true,
title: {
display: true,
text: 'Chart.js Line Chart'
}
}
};
{% endchart %}
悬浮注释
hexo-tag-hintnpm install hexo-tag-hint --save
1
{% hint 'I WANT YOU' '🫵' %}
I WANT YOU
动态终端代码演示
这个也太帅了我一定要学,下次看看
https://github.com/heowc/hexo-tag-gdemo
折叠
1 | {% fold 我是可折叠内容 %} |
插入b站视频
hexo-tag-bilibilinpm install --save hexo-tag-bilibili
1
2
3{% bilibili [av_id] %}
or
{% bilibili [av_id] [page] %}
但是宽度不适配主题…!
感觉可能还是用html插入视频比较好!
testing···
https://caczhtus.github.io/posts/51050/
https://akilar.top/posts/615e2dec/
下次试试
我在考虑替换为butterfly主题,它支持的插件和功能实在太多了,但是主页又太花里胡哨了。。。
https://yun.yunyoujun.cn/guide/
不得不说,↑这个主题示例站点看起来很土 但是根据这位的修改之后变得相当好看
特别是文章显示部分,只能说不愧是做前端的能改成这样
网易云居然自己可以生成?!
注脚
hexo-referencenpm install hexo-reference --save
1 | basic footnote[1] |
basic footnote[1]
here is an inline footnote[2]
and another one[3]
and another one[4]
实际上感觉悬停注释就够用了….
总之先加到这里!