Creating categories on Jekyll driven site

前端 未结 4 1354
野趣味
野趣味 2021-02-01 07:41

I\'m having a hard time understanding how to generate archive pages for each category I use on my blog. I\'d like the user to be able to click on a category and then be taken to

4条回答
  •  耶瑟儿~
    2021-02-01 07:59

    You can use Dave Perett's generate_categories.rb plugin to automatically create a page for each category in your site. Then, use a for loop to run through your site categories and create a link for each in your navigation (or wherever you want to link to the archive pages), as Jon did in his answer to your quesiton.

提交回复
热议问题