hexo next tags is not show in sidebar and post web

Viewed 21

I'm install NexT 8.13.0 and hexo 6.2.0 to create my web, but tags not working in post and page.

I use command to created tags page

hexo new page "tags"

and edit source\tags\index.md

---
title: tags
date: 2022-09-21 01:28:22
type: "tags"
comments: false
---

edit themes\next_config.yml

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

next to edit post web

---
layout: post
title: Markdown 語法
date: 2022-09-21 00:37:16
tags: test
sticky: 100
---

but post web and tags web not working, Im try hexo clean is same.by the way categories not working too.(標籤 = Tags,分類 = categories)

home web sidebar

post web

Found the problem, the plugin for tags and categories is missing.

npm install hexo-generator-tag --save

npm install hexo-generator-category --save

Its working now.

0 Answers
Related