语言

修改站点配置文件 _config.yml

默认语言是 en

主题支持三种语言

  • default(en)
  • zh-CN (简体中文)
  • zh-TW (繁体中文)

网站资料

修改网站各种资料,例如标题、副标题和邮箱等个人资料,请修改博客根目录的_config.yml

1
2
3
4
5
6
7
8
9
# Site
title: ZYH's blog #网站标题
subtitle: '' #网站副标题subtitle
# 下面description,keywords,如果想让搜索引擎收录需要填上,这个做SEO优化必不可忽视的两个属性
description: #网站描述
keywords: #网站的关键词
author: Charmes #作者,文章版权所显示的
language: zh-CN #网站语言,不填写,默认为英文
timezone: '' #时区,可以不填写

配置分类页

  1. 新建分类categories 页

    categories 页是用来展示所有分类的页面,如果在你的博客 source 目录下还没有 categories/index.md 文件,那么你就需要新建一个,命令如下:

    1
    hexo new page "categories"

    编辑刚刚新建的页面文件 /source/categories/index.md,至少需要以下内容:

    1
    2
    3
    4
    5
    6
    ---
    title: categories
    date: 2023-07-21 00:57:33
    type: "categories"
    layout: "categories"
    ---
  2. 新建标签tags页

    tags 页是用来展示所有标签的页面,如果在你的博客 source 目录下还没有 tags/index.md 文件,那么你就需要新建一个,命令如下:

    1
    hexo new page "tags"

    编辑你刚刚新建的页面文件 /source/tags/index.md,至少需要以下内容:

    1
    2
    3
    4
    5
    6
    ---
    title: tags
    date: 2023-07-21 00:57:33
    type: "tags"
    layout: "tags"
    ---
  3. 新建关于我about页

    同上,秩序把相关信息改成about

  4. 新建留言板contact页(可选)

    同上,秩序把相关信息改成about

  5. 新建友情链接friends页(可选)

    同上,秩序把相关信息改成about

    同时,在你的博客 source 目录下新建 _data 目录,在 _data 目录中新建 friends.json 文件,文件内容如下所示:

    1
    2
    3
    4
    5
    6
    7
    8
    [{
    "avatar": "",
    "name": "",
    "introduction": "",
    "url": "",
    "title": ""
    }
    ]
  6. 新建404页

    同上,秩序把相关信息改成about

    编辑你刚刚新建的页面文件 /source/404/index.md,至少需要以下内容:

    1
    2
    3
    4
    5
    6
    7
    ---
    title: 404
    date: 2018-09-30 17:25:30
    type: "404"
    layout: "404"
    description: "Oops~,我崩溃了!找不到你想要的页面 :("
    ---