reuixiy / hugo-theme-meme

😝 You can’t spell awesome without MemE!
https://io-oi.me/hugo-theme-meme
MIT License
1.01k stars 279 forks source link

About the problem of splitting the slot #371

Open c469591 opened 2 years ago

c469591 commented 2 years ago

Hello. I'm having some problems setting up meme again. I want to use the split slot setting to categorize my posts, currently, I follow the instructions in config.toml and change it to categoryBy = "sections" Also, the settings in the menu are changed to this [[menu.main]] url = "/archives/" name = "txt" weight = 3 pre = "internal" post = "archive" After that, I also created this file in this path by clicking /content/archives/_index.md I found the instructions in simplified Chinese on the web, so I also typed the following in the _index.md file and saved it by clicking on Lee +++ title = "Archive" +++

But when I use hugo server to test the site I can't see the articles I put in /content/txt/ when I go to the txt menu. All my posts are in All my articles are placed in /content/txt/ and different articles are also placed in subfolders, for example /content/txt/pc/ How can I see my articles when I open txt links on my website? And can I display the links with the subfolder names? What else do I need to change? Thanks!

reuixiy commented 2 years ago

What about creating /content/txt/_index.md? Then check http://localhost:1313/txt with hugo server -D

reuixiy commented 2 years ago

Also, you should check http://localhost:1313/archives to see all your posts list. And you should see a tree page in http://localhost:1313/categories if you follow the instruction:

https://github.com/reuixiy/hugo-theme-meme/blob/e4258903032a6a6b3b27ca3603652c11b167ace3/config-examples/en/config.toml#L394-L403