HEXO站点配置文件解读


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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

宁静_致远_

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值