git clone https://github.com/ppoffice/hexo-theme-icarus.git themes/icarus
此时已经下载到项目中。html
顶级_config.yml中选择icarus
主题java
# Extensions ## Plugins: https://hexo.io/plugins/ ## Themes: https://hexo.io/themes/ theme: icarus
此时主题已经安装好,清除、编译、部署能够看到效果了git
icarus 主题中的配置_config.yml中开启图片开关github
article: thumbnail: true
文章.md文件头中添加图片绝对/相对地址hexo
title: Getting Started with Icarus thumbnail: /gallery/thumbnails/desert.jpg // thumbnail:https://raw.githubusercontent.com/removeif/blog_image/master/20190620152744.png --- Post content...
配置完成后部署显示效果以下(最新文章列表显示缩略图、文章开头显示一张设置图片)app
icarus 主题中的配置_config.yml中开关ui
widgets: - type: toc position: left
同事文章顶部加入标签插件
title: Table of Contents Example toc: true --- Post content...
配置效果翻译
icarus 主题中的配置_config.yml中开启(部分评论系统须要FQ才能使用,valine不用FQ我的推荐,valine安装参考)3d
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
效果以下
目前配置基本已经够使用,还须要更多配置请参考链接
欢迎访问 我的博客