Code Monkey home page Code Monkey logo

Comments (2)

laozhu avatar laozhu commented on August 15, 2024

不需要新增 tags.md 文件的,直接在 config.toml 菜单配置里增加一个 tags 的入口即可。

# Initial site menu, you can extend menu with content.
[[menu.main]]
  name = "Home"
  weight = 10
  identifier = "home"
  url = "/"

[[menu.main]]
  name = "Works"
  weight = 20
  identifier = "works"
  url = "https://github.com/laozhu"

[[menu.main]]
  name = "Tags"
  weight = 30
  identifier = "tags"
  url = "/tags/"

你可以通过修改权重来修改显示的顺序,其他的都可以不改的。


BTW,你的那种方式也可以增加菜单项的,主题里面的友链 (links) 页面和关于 (about) 页面是通过这种方式,适合需要用户自定义内容的页面,标签 (tags) 页面是自动生成的,所以不需要新建 tags.md 文件来配置自定义内容。

from hugo-nuo.

WZChan avatar WZChan commented on August 15, 2024

非常感谢,我弄好了。
问题在我在给文章分Tags的时候没有加方括号。
谢谢您。

from hugo-nuo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.