Comments (2)
不需要新增 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.
非常感谢,我弄好了。
问题在我在给文章分Tags的时候没有加方括号。
谢谢您。
from hugo-nuo.
Related Issues (20)
- Align title flush with top-of-page on mobile
- Please make logo rotation optional HOT 1
- Consider clicking logo or title mean "go back to home page" HOT 1
- Changing theme to hugo-nuo unable to deploy on Netlify. HOT 2
- Can you add a search function in your hugo theme
- Page's .Hugo is deprecated. Use the global hugo function HOT 1
- [version]this feature is not available in your current Hugo version HOT 2
- [feature] Custom home layout
- change code snippet highlight theme
- the tweet shortcode cann't work HOT 2
- chrome plugin install? HOT 2
- 主页显示一个叫做Posts的连接,而不是文章列表 HOT 9
- social communication parameter modify request
- summary post problems HOT 1
- server start failed
- grey-prism.svg can't show
- 无法设置微信头像 HOT 1
- 代码块无法渲染 HOT 2
- 不知名故障 HOT 1
- Updating old Google Analytics tag (analytics.js) to the latest tag (gtag.js)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hugo-nuo.