一个基于hexo-theme-material-flow重做修改的主题
(2022-07-19:hexo-theme-shana原主题手机访问有BUG,所以换成了hexo-theme-material-flow)
1.添加背景(由LoliAPI提供的 随机调用二次元图片API)
2.由于原先的主题没有pjax,所以我添加了pjax
3.保留了之前SinGO主题的风格
4.添加Waline、Gitalk、Twikoo、Giscus、Discuss评论
#1264 (对不起我是SB,我冤枉Waline了,SinGO主题的BUG是我没设置好才导致的!)
5.添加网页在线聊天系统
6.添加不蒜子计数器
7.添加网站天气预报
8.添加网页播放音乐
9.添加萌ICP备案(PS:仅提供萌站长交流!不是真正的中国备案!)
1.安装主题
# 普通线路
git clone https://github.com/StarWEB890/hexo-theme-singo.git themes/singo
# FastGit加速线路
git clone https://hub.fastgit.xyz/StarWEB890/hexo-theme-singo.git themes/singo
# github.91chi.fun加速线路
git clone https://github.91chi.fun/https://github.com/StarWEB890/hexo-theme-singo.git themes/singo2.安装插件
# 普通线路
npm i -S hexo-generator-search hexo-generator-feed hexo-renderer-less hexo-autoprefixer hexo-generator-json-content
# cnpm加速线路(需要安装cnpm)
# 安装cnpm:npm install -g cnpm --registry=https://registry.npmmirror.com
cnpm i -S hexo-generator-search hexo-generator-feed hexo-renderer-less hexo-autoprefixer hexo-generator-json-content3.同时将themes/singo/_source/的tags、categories和search文件夹拷贝到hexo根目录下的source文件夹下
4.修改根目录下的_config.yml
①修改theme为singo
theme: singo②在末尾添加:
plugins: hexo-generate-feed
search:
path: search.xml
field: post
autoprefixer:
exclude:
- '*.min.css'
# remove: false # prevent autoprefixer remove page-break-inside
# browsers:
# - 'last 2 versions'
# - '> 5%'
# Generator json content
jsonContent:
meta: false
keywords: false
pages:
title: true
slug: false
date: false
updated: false
comments: false
path: false
link: false
permalink: true
excerpt: false
keywords: false
text: true
raw: false
content: false
posts:
title: true
slug: false
date: false
updated: false
comments: false
path: false
link: false
permalink: true
excerpt: false
keywords: false
text: true
raw: false
content: false
categories: false
tags: false
feed:
type: atom
path: atom.xml
limit: 20
hub:
content:④ 将themes/singo/_source/的links文件夹和say文件夹拷贝到hexo根目录下的source文件夹下
cd themes/singo
git pull origin master


