Skip to content

添加标签页

Richard Jiang edited this page Apr 20, 2017 · 2 revisions
  • 新建一个 tags 页面:
hexo new page tags
  • 编辑生成的 tags/index.md 文件,设置布局为 tags:
title: tags
layout: tags

默认开启评论,添加 comments 字段并设置为 false 可关闭。

  • 在主题配置文件(_config.yml)中添加链接:
# ===========================================
# Menu Settings
# ===========================================
menu:
  Home: /
  Archives: /archives/
  Tags: /tags