Hexo 搭建个人博客教程 - 5 - 站点主要配置_config.yml
非原创 java_world 发表于:2018-07-05 14:28:03
  阅读 :150   收藏   编辑

上一篇 Hexo 搭建个人博客教程 - 4 - 使用并配置 next 主题

配置文件位置

~\hexo\_config.yml

我的在D:\hexo\hexo\_config.yml,hexo主配置文件内容很小,也就不到100行

配置

注意:配置的值前面有个空格

# Site
title: 码连 #站点名称
subtitle: 'https://malian.tech' #站点副标题内容
description: '' #站点的描述,用于SEO
keywords: #站点的keywords,用于SEO
author: zhang.x #站点作者
language: zh-Hans #站点语言
timezone: 'Asia/Shanghai' #站点时区 https://en.wikipedia.org/wiki/List_of_tz_database_time_zones

# URL
## Set your site url here. For example, if you use GitHub Page, set url as 'https://username.github.io/project'
url: 'https://malian-tech.github.io/'#就是的github.io地址

其他的配置一般不需要修改

部署到Github上

依次执行

hexo clean  #清除缓存 网页正常情况下可以忽略此条命令
hexo generate   #生成静态页面至public目录
hexo deploy     #将.deploy目录部署到GitHub

访问

https://malian-tech.github.io/