📒
Notes
  • 个人笔记
  • Machine Learning
    • Tensorflow
      • Text
        • Keras构建RNN
        • 字词嵌入
        • 字词嵌入示例程序
      • Data processing
        • tf.data数据加载
      • Tensorflow Tricks
    • 循环神经网络概览
    • Pix2Pix
  • Assembly Language
    • DOS中的Debug模式
    • LOOP指令
    • 8086CPU
    • 标志位寄存器
    • 汇编指令
    • 汇编语言源程序格式
  • Linux System
    • Systemctl 服务脚本
    • Linux端口占用
    • Btrfs文件系统
    • C Socket网络编程细节问题
  • Hexo
    • Hexo下的Tag/Categories栏
    • Git备份博客
    • Hexo博客基本部署
  • Kernel
    • C语言中消息队列实现
    • Linux内核的进程调度函数
    • Linux内核模块的编译
    • Linux Kernel概述
  • Linux Software
    • Linux软件安装与配置
  • Docker
    • OVS+Docker网络构建
    • Docker分层垃圾清理
  • C
    • CMakeList语法
Powered by GitBook
On this page
  • Step 1
  • Step 2
  • Step 3
  • Step 4

Was this helpful?

  1. Hexo

Hexo下的Tag/Categories栏

默认情况下Tag和Category点开来是空的,需要稍稍配置一下。

不同的主题对应的方法不太一致,这里使用的是NexT主题。以下为Tag栏的配置方式,Category栏也是类似的。

Step 1

hexo new page "tags"

Step 2

将新增的文件source/tags/index.md改为如下内容:

---
title: "tags"
type: tags
layout: "tags"
---

另外经过验证只添加一个type: "tags"也可以实现同样的效果。

Step 3

编辑配置文件,对于对于NexT主题就需要保证menu下的tags对应上刚才的目录,默认的配置就应该可以了。

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

Step 4

确认Hexo配置的tag_dir路径。

tag_dir: tags
PreviousHexoNextGit备份博客

Last updated 5 years ago

Was this helpful?