Hexo搭建
# GitHub 部署
npm install hexo-deployer-git --save
deploy:
type: git
repository: git@github.com:cndadi/cndadi.github.io.git #你的仓库地址
branch: main
hexo clean
hexo generate
hexo deploy
# 服务端创建 Git 仓库
配置免密登录
配置本地客户端与阿里云服务器端的 ssh 免密登录,方便上传仓库时一键式上传。
在本地客户端生成并上传公共密钥:
# 执行完之后一直回车就行
ssh-keygen
# 上传公共密钥到阿里云服务器
ssh-copy-id root@阿里云公网 IP
# 测试是否已免密
ssh root@阿里云公网 IP
服务器上创建一个 Git 仓库,该仓库中新建一个 post-receive 钩子文件。
cd ~
git init --bare hexo.git
vi ~/hexo.git/hooks/post-receive
# 填写以下内容,其中的–work-tree 为 hexo 博客目录
gi ...
Butterfly添加全局吸底Aplayer教程
以下文章只是教程
如果部署之后,并没有出现 aplayer , 请确认是否跟足步骤操作或者更换音乐源,多试试。
如果遇到使用問題,请仔细查看插件文档,或者到插件那裏反饋。
# 前言
如果你想使用 aplayer,很多人都會推薦安裝 hexo-tag-aplayer 這款插件。這款插件通過 Hexo 獨有的標籤外掛,我們可以很方便的寫入一些參數,插件就會幫我們生成對應的 html。如果你只是使用一些簡單的功能,其實無需使用到這個插件,只需以 html 格式書寫就行,不用插件去轉換。
例如:
如果使用插件,在 markdown 中要這樣寫
1{% meting "000PeZCQ1i4XVs" "tencent" "artist" "theme:#3F51B5" "mutex:true" "preload:auto" %}
其會被插件渲染為
1<div id="aplayer-uxAIfEUs" class="ap ...
Butterfly 安裝文檔(四) 主題配置-2
📖 本教程更新於 2023 年 02 月 20 日,教程的內容針對最新穩定版而更新(如果你是舊版,教程會有些出入,請留意)
🦋 Butterfly 已經更新到 4.7.0
📚 文檔目錄
🚀 快速開始 - 📑 主題頁面 - 🛠 主題配置 - 1 - ⚔️ 主題配置 - 2 - Post not found: Butterfly - 安裝文檔 - 五 - 主題問答 ❓ 主題問答 - Post not found: Butterfly - 安裝文檔 - 六 - 進階教程 ⚡️ 進階教程 - Post not found: Butterfly - 安裝文檔 - 七 - 更新日誌 ✨ 更新日誌 - Post not found: Butterfly - 打賞 🤞 打賞
你可以通過右下角的 簡 按鈕切換為簡體顯示
# 評論
通用設置DisqusDisqusjslivere(來必力)GitalkValineWalineUtterancesFacebook CommentsTwikooGiscusremark42artalk從 3.0.0 開始,開啟評論需要在 commen ...
Butterfly 安裝文檔(三) 主題配置-1
📖 本教程更新於 2023 年 02 月 20 日,教程的內容針對最新穩定版而更新(如果你是舊版,教程會有些出入,請留意)
🦋 Butterfly 已經更新到 4.7.0
📚 文檔目錄
🚀 快速開始 - 📑 主題頁面 - 🛠 主題配置 - 1 - ⚔️ 主題配置 - 2 - Post not found: Butterfly - 安裝文檔 - 五 - 主題問答 ❓ 主題問答 - Post not found: Butterfly - 安裝文檔 - 六 - 進階教程 ⚡️ 進階教程 - Post not found: Butterfly - 安裝文檔 - 七 - 更新日誌 ✨ 更新日誌 - Post not found: Butterfly - 打賞 🤞 打賞
你可以通過右下角的 簡 按鈕切換為簡體顯示
# 語言
修改站點配置文件 _config.yml
默認語言是 en
主題支持三種語言
default(en)
zh-CN (簡體中文)
zh-TW (繁體中文)
# 網站資料
修改網站各種資料,例如標題、副標題和郵箱等個人資料,請修改博客根目錄的 _c ...
Butterfly 安裝文檔(二) 主題頁面
📖 本教程更新於 2023 年 02 月 20 日,教程的內容針對最新穩定版而更新(如果你是舊版,教程會有些出入,請留意)
🦋 Butterfly 已經更新到 4.7.0
📚 文檔目錄
🚀 快速開始 - 📑 主題頁面 - 🛠 主題配置 - 1 - ⚔️ 主題配置 - 2 - Post not found: Butterfly - 安裝文檔 - 五 - 主題問答 ❓ 主題問答 - Post not found: Butterfly - 安裝文檔 - 六 - 進階教程 ⚡️ 進階教程 - Post not found: Butterfly - 安裝文檔 - 七 - 更新日誌 ✨ 更新日誌 - Post not found: Butterfly - 打賞 🤞 打賞
你可以通過右下角的 簡 按鈕切換為簡體顯示
# Front-matter
Front-matter 是 markdown 文件最上方以 --- 分隔的區域,用於指定個別檔案的變數。
Page Front-matter 用於 頁面 配置
Post Front-matter 用於 文章頁 配置
如果 ...
Butterfly 安裝文檔(一) 快速開始
📖 本教程更新於 2023 年 02 月 20 日,教程的內容針對最新穩定版而更新(如果你是舊版,教程會有些出入,請留意)
🦋 Butterfly 已經更新到 4.7.0
📚 文檔目錄
🚀 快速開始 - 📑 主題頁面 - 🛠 主題配置 - 1 - ⚔️ 主題配置 - 2 - Post not found: Butterfly - 安裝文檔 - 五 - 主題問答 ❓ 主題問答 - Post not found: Butterfly - 安裝文檔 - 六 - 進階教程 ⚡️ 進階教程 - Post not found: Butterfly - 安裝文檔 - 七 - 更新日誌 ✨ 更新日誌 - Post not found: Butterfly - 打賞 🤞 打賞
你可以通過右下角的 簡 按鈕切換為簡體顯示
hexo-theme-butterfly 是基於 hexo-theme-melody 的基礎上進行開發的。
# 安裝
Git安裝 (Github)Git安裝 (Gitee)npm安裝穩定版【建議】
在你的 Hexo 根目錄裏
1git clone -b ma ...