直接复制markdown

npm i hexo-butterfly-copymarkdown --save
一个Hexo插件,允许你直接从网页复制markdown,主要为butterfly主题开发,但基本的复制功能是通用的
来源:https://www.crowhsu.top/posts/6e818316.html

1
2
3
4
5
6
7
copyMarkdown:
enable: true
pureMarkdown: false #使用true以禁用外挂转换 默认为 false
keyboard: true #cv悬浮组件
field: post # default: 每个页面 post: 仅文章页面(默认值)
copyright: true # 是否添加版权信息 默认开启
Reprint: true # 是否开启一键转载 默认开启

pwa

1
npm install hexo-pwa --save

网上教程地址 简书

hexo-deplayer-git

1
npm install hexo-deployer-git --save

图片插件

hexo-asset-image

1
npm install hexo-asset-image --save

**_config.yml** 配置文件

1
post_asset_folder: false改为true

解决站点链接中文编码问题(此插件会与图片插件产生冲突,解决方案参考此文章)

1
npm install hexo-abbrlink --save

**_config.yml** 配置文件

1
2
3
4
5
6
# permalink: :year/:month/:day/:title/
# permalink_defaults:
permalink: posts/:abbrlink.html
abbrlink:
# alg: crc32 #算法: crc16(default) and crc32
rep: dec #进制: dec(default) and hex

hexo-renderer-pug

以及hexo-renderer-stylus
pug 以及 stylus 的渲染器(folud 主题不需要)

1
npm install hexo-renderer-pug hexo-renderer-stylus --save

hexo-wordcount

文章字数统计插件(folud 主题不需要)

1
npm install hexo-wordcount --save

hexo-generator-sitemap

以及hexo-generator-baidu-sitemap
站点地图插件

1
npm install hexo-generator-sitemap --save
1
npm install hexo-generator-baidu-sitemap --save

本地搜索插件(folud 主题不需要)

1
npm install hexo-generator-search --save

hexo-blog-encrypt

文章加密插件

1
npm install --save hexo-blog-encrypt

**post.md** 文件

1
2
3
4
5
6
7
8
9
title: {{ title }}
abbrlink:
date: {{ date }}
categories:
tags:
description:
password:
abstract: 有东西被加密了, 请输入密码查看.
message: 您好, 这里需要密码.

原文链接:https://imgod.me/posts/60161.html