hexo next主题优化之设置主题,菜单,增加分类

本文介绍了如何优化Hexo Next主题,包括切换Scheme、设置菜单和添加分类。通过修改_config.yml文件,启用所需Scheme,定制菜单,并通过修改文章属性实现分类功能。
摘要由CSDN通过智能技术生成

博客的主题Scheme

Scheme 的切换通过更改主题配置_config.yml文件,搜索 scheme 关键字,将你需用启用的 scheme 前面注释 # 去除即可。

#Schemes
#scheme: Muse
#scheme: Mist
#scheme: Pisces
scheme: Gemini

设置你想要的菜单

也是在主题配置_config.yml文件里面,搜索menu关键字

menu:
  home: /
  #about: /about/ || user
  #tags: /tags/ || tags
  categories: /categories/|| th
  archives: /archives
  #schedule: /schedule/ || calendar
  #sitemap: /sitemap.xml || sitemap
  #commonweal: /404/ || heartbeat

为博客增加分类

执行以下命令
hexo new page categories
打开blog/source/categories/index.md,增加type: “categories”

title: categories
date: 2020-05-05 22:45:12
type: "categories"

给文章添加“categories”属性,这样就可以完成了
例如

title: 博客新增加的功能
date: 2020-05-06 14:36:37
categories: hexo

在这里插入图片描述

现在很晚了,改天写社交,搜索和打赏等功能.
这是我搭建的博客网站 www.deyia.top
还没完善好,一起加油
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值