标签

效果

blur 样式:

Screenshot 2023-03-24 at 4.36.53 PM

cloud 样式:

Screenshot 2023-03-24 at 4.38.47 PM

配置

创建标签页面

在 Hexo 根目录执行以下命令:

hexo new page tags

导航栏添加标签页面

在 Redefine 主题配置文件 _config.redefine.ymlnavbar 配置项里面启用 tags

_config.redefine.yml
navbar:
  tags:
    Tags: #取名随意
        icon: fa-solid fa-tags #图标
        path: /tags/ #链接

(放在二级菜单也可以)

修改标题(可选)

Tags 标签页默认根据 title: tags 来匹配。

如果需要自定义页面的标题,需要在 Front Matter 里面添加 type: tags,即可自定义页面标题。

更改样式

在 Redefine 主题配置文件 _config.redefine.ymlpage_templates 配置项里面更改 tags_style

配置项名称:page_templates.tags_style

类型可选值默认值
字符串blurcloudblur