Butterfly官方文档

安装文档二

安装文档三

  1. 文章锚点设置

安装文档四

美化特效

打字效果

网站背景

1
2
3
4
# Website Background (設置網站背景)
# can set it to color or image (可設置圖片 或者 顔色)
# The formal of image: url(http://xxxxxx.com/xxx.jpg)
background: url(https://humgimg.oss-cn-hangzhou.aliyuncs.com/img/20210505155803.png)

鼠标点击效果

页面美化

1
2
3
4
5
beautify:
enable: true
field: site # site/post
title-prefix-icon: '\f0c1'
title-prefix-icon-color: '#F47466'

网站副标题

页面加载动画

其他

分类页-设置子目录

1
2
3
4
5
6
7
8
9
10
title: 二叉树的迭代遍历
date: 2021-05-05 20:24:53
tags:
categories:
- 数据结构和算法
-
keywords:
description:
top_img:
cover:

评论

设置文章永久链接

1
2
3
4
5
6
7
8
# URL
## Set your site url here. For example, if you use GitHub Page, set url as 'https://username.github.io/project'
url: https://humg.top
permalink: /posts/:year:month:day:id.html
permalink_defaults:
pretty_urls:
trailing_index: true # Set to false to remove trailing 'index.html' from permalinks
trailing_html: true # Set to false to remove trailing '.html' from permalinks

在根目录下找到...\scaffolds\post.md,添加一个id属性

1
2
3
4
5
6
7
8
9
10
title: 二维码扫描登录原理
date: 2021-05-07 22:09:08
tags:
categories:
- 其他
keywords:
description:
top_img:
cover:
id: p1

推送文章链接给百度收录

  1. 根目录下安装依赖

    1
    npm install hexo-baidu-url-submit --save
  2. 配置_config.yml

    1
    2
    3
    4
    5
    6
    7
    8
    baidu_url_submit:
    count: 100 # 提交最新的多少个链接
    host: www.humg.top # 在百度站长平台中添加的域名
    token: http://data.zz.baidu.com/urls?site=https://www.humg.top&token=**** # 秘钥
    path: baidu_urls.txt

    deploy:
    - type: baidu_url_submitter
  3. 执行hexo g(会生成baidu_urls.txt文件),以后执行hexo d即可主动推送链接给百度收录

  4. 响应信息

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    INFO  Deploying: baidu_url_submitter
    INFO Submitting urls
    https://www.humg.top/posts/20210507_p1.html
    https://www.humg.top/posts/20210506_ckod0noc6000diuho9uxxgc2q.html
    https://www.humg.top/posts/20210506_ckocvoh9h0001iuhoe6kvhywp.html
    https://www.humg.top/posts/20210505_ckobh7a8h0008mrhobgvl5v3r.html
    https://www.humg.top/posts/20210505_ckobftdi40006mgho60uqh256.html
    https://www.humg.top/posts/20210505_ckob0qjnw000b5gho0qeba958.html
    https://www.humg.top/posts/20210505_p1.html
    https://www.humg.top/posts/20210502_ckob02m2s00005ghofeac7wxp.html
    {"remain":2990,"success":8}
    INFO Deploy done: baidu_url_submitter

使用WinSCP快速添加\编辑文章

  1. 进入博客文章目录/appdata/Ablog/blog/source/_posts

  2. 当前目录右键设置自定义命令

  3. 添加自定义命令

    1
    cd /appdata/Ablog/blog && hexo n "newPost" && cd /appdata/Ablog/blog/source/_posts

  4. 在WinSCP中打开文章(配合本地Markdown编辑器Typora)进行编辑,保存后hexo会自动把文章编译成静态文件。

已安装npm依赖

卸载依赖命令:npm uninstall xxx

  • hexo-baidu-url-submit