最近花了一点时间更新了团队的博客,原来团队使用的是hexo-next主题。觉得SEO挺不好的,趁这次有空自己凭感觉写了一个主题。风格有点类似扁平化。
少了很多的花哨。但经过一个月的使用。发现团队博客的文章Seo好了很多。
目前支持的只有首页,分类页面,文章页面。其他页面需要自己扩展。但基本已经够用了。
这次的升级,也带来了,不少的影响。原来的文章链接因为不合理,这次优化升级的时候痛下决心更改了所有文章链接。原来的链接都不能访问了,心在滴血。
主题地址: github.com/Yi-love/hex…
我自己的博客和团队的博客都用上了。喜欢的可以star一下。
npm install
git clone https://github.com/Yi-love/hexo-theme-f25.git
复制代码
config
not next page , only one page.
# _config.yml
# required
title:
subtitle:
description:
keywords:
author:
language: zh-CN
timezone: Asia/Shanghai
copyright:
# required
menu:
Home: /
About: /about
index_generator:
path: ''
per_page: 10000
# not next page , only one page.
per_page: 10000
# required
theme: hexo-theme-f25
复制代码
# themes/hexo-theme-f25/_config.yml
# required
default_cover: images/default_cover.jpg
google_analytics:
# favicon
favicon: /images/favicon.ico
复制代码
source/_posts
source post file.
example:
---
date: 2018-11-20 12:00
title: this is a title
subtitle: subtitle show you
cover: /images/first_cover.jpg
categories: [Node.js]
---
复制代码