title: HEXO站点配置文件解读
tags: HEXO
category: 个人博客
首发网址:https://tiansztiansz.github.io/2022/01/29/HEXO站点配置文件解读/
打开blog
文件夹下的_config.yml
文件
修改网站标题、语言等
# Site
title: 宁静致远的个人博客 # 网址主标题
subtitle: 非淡泊无以明志, 非宁静无以致远 # 网址副标题
description: write less, do more # 侧边栏下的格言
keywords:
author: 宁静致远 # 作者名
language: zh-CN # 网址整体语言
timezone: Asia/Shanghai # 设置时间
设置网站主页地址
# URL
## Set your site url here. For example, if you use GitHub Page, set url as 'https://username.github.io/project'
url: https://tiansztiansz.github.io/ # 在这里更改为自己的主页网址
permalink: :year/:month/:day/:title/
permalink_defaults:
pretty_urls:
trailing_index: true # Set to false to remove trailing 'index.html' from permalinks
trailing_html: true # Set to false to remove trailing '.html' from permalinks
修改HEXO的主题
# Extensions
## Plugins: https://hexo.io/plugins/
## Themes: https://hexo.io/themes/
theme: next # 当前主题为next
配置远端仓库地址
# Deployment
## Docs: https://hexo.io/docs/one-command-deployment
deploy:
type: git
repository:
github: https://github.com/tiansztiansz/tiansztiansz.github.io.git #你的仓库地址
gitee: https://gitee.com/a1866/a1866.git
branch: master
参考文献:https://zhuanlan.zhihu.com/p/157391730
设置SEO,即网站推广
# SEO
sitemap:
path: sitemap.xml
baidusitemap:
path: baidusitemap.xml
参考文献:https://blog.csdn.net/qq_41518277/article/details/101766036