主要页面
首先,使用hexo自带的命令hexo new page "page name"
创建新页面
Archive页面
这个页面是不用创建就自带的。
archiveStyle:
style: normal
type: center # basic, split, center
color: pink
style
样式:comment-shape、normal
type
结构:basic、split、center
Tags,Categories页面
需要创建名为tags
的页面
hexo new page tags
预览
友链接
创建友链接页面
hexo new page links
如何添加友链接
-
找到
/source/links/index.md
-
在=== ===包裹的段落里面添加一条
links:
- group_name: Friends
description: Beautiful or handsome friends
items:
- url: https://
img: https://
name: XXX
description: Opps, he says nothing.
group_name
表示对链接进行分组description
是每一个分组的描述items
里面具体是一条一条的友链接- 每一条友链接有四个信息:网站地址,头像地址,网站名称, 网站描述
- 每一条连接都以一个
-
开头,格式如上
注意:里面的看起来像是tabs的缩进,其实是空格,而且必须是空格
图集
图集页面就是普通的categories页面,所以一个图集就是一个普通的post文件。
无需配置额外的页面,只需给顶部菜单配置一个访问的按钮即可,路径则需填写/categories/Gallery
才可以正常生效
xxx:
path: /categories/Gallery
ico: ico-name
还需要在文件头部进行以下配置:
title: xxxx
date: xxxx-xx-11 04:39:38
tags:
categories: Gallery
cover: https://cdn.jsdelivr.net/gh/DyingDown/img-host-repo/AI/202502110542366.png
color: 8b9238
categories: Gallery
大小写敏感,用来指定该文章属于Gallery页面cover:
每个图集的封面图片,输入图片的地址color:
每个图集展示的背景颜色(在gallery主页面)十六进制的颜色。
页面预览