安裝部分配置hexo icarus主題配置
安裝icarus
- 直接下載主題模塊放到blog項目 ,blog項目根目錄執行
git clone https://github.com/ppoffice/hexo-theme-icarus.git themes/icarus
此時已經下載到項目中。
-
頂級_config.yml中選擇
icarus
主題# Extensions ## Plugins: https://hexo.io/plugins/ ## Themes: https://hexo.io/themes/ theme: icarus
-
此時主題已經安裝好,清除、編譯、部署可以看到效果了
配置icarus
- 完全參照官網配置,進行翻譯解說
配置文章部分
頂部圖片添加
icarus 主題中的配置_config.yml中開啟圖片開關
article:
thumbnail: true
文章.md文件頭中添加圖片絕對/相對地址
title: Getting Started with Icarus
thumbnail: /gallery/thumbnails/desert.jpg
// thumbnail:https://raw.githubusercontent.com/removeif/blog_image/master/20190620152744.png
---
Post content...
配置完成后部署顯示效果如下(最新文章列表顯示縮略圖、文章開頭顯示一張設置圖片)
左邊文章導航欄開啟
icarus 主題中的配置_config.yml中開關
widgets:
-
type: toc
position: left
同事文章頂部加入標簽
title: Table of Contents Example
toc: true
---
Post content...
配置效果
評論系統開啟
icarus 主題中的配置_config.yml中開啟(部分評論系統需要翻牆才能使用,valine不用翻牆個人推薦,valine安裝參考)
comment:
type: valine
app_id: xxxxxxxx # (required) LeanCloud application id
app_key: xxxxxxxx # (required) LeanCloud application key
notify: false # (optional) receive email notification
verify: false # (optional) show verification code
placeholder: xxxxxxxx # (optional) comment box placeholder text
開啟效果
捐贈收款開啟
icarus 主題中的配置_config.yml中開啟 注意如果默認不配置,編譯時有報錯,可以# 把它注釋掉,不啟用功能
donate:
-
# Donation entry name
type: alipay
# Qrcode image URL
qrcode: 'https://wx2.sinaimg.cn/large/b5d1b710gy1g0lvxdcwm0j20p011i4bg.jpg'
-
# Donation entry name
type: wechat
# Qrcode image URL
qrcode: 'https://wx2.sinaimg.cn/large/b5d1b710gy1g0lvwdcpb5j20u014qgy2.jpg'
開啟配置效果如下
全局搜索開啟
icarus 主題中的配置_config.yml中開啟,不同的搜索類型需要安裝插件參考官網,type: insight此類型不需要安裝,已經內置
search:
type: insight
效果如下
更多配置請參考官網配置
目前配置基本已經夠使用,還需要更多配置請參考連接
歡迎訪問 個人博客