为你的 Hugo Fixit 主题博客制作文章合集

简单的几个步骤,为你的 Hugo Fixit 主题制作文章合集。

1.Fixit 版本:params.version

1
version = "0.3.X"

2.增加 taxonomies 配置:

1
2
3
4
5
6
7
8
9
 # ------------------------------------------------------------------------------------- 
 # Taxonomies Configuration 
 # See: https://gohugo.io/content-management/taxonomies/#configure-taxonomies 
 # ------------------------------------------------------------------------------------- 
  
 [taxonomies] 
   category = "categories" 
   tag = "tags" 
   collection = "collections" 

3.相关配置:

params.page.collectionList & params.page.collectionNavigation

1
2
3
4
 # FixIt 0.3.0 | NEW whether to enable collection list at the sidebar 
 collectionList = true 
 # FixIt 0.3.0 | NEW whether to enable collection navigation at the end of the post 
 collectionNavigation = true 

4.文章参数配置:

1
2
3
title: "xxx"
date: 2023-09-19T00:00:00+08:00
collections: ["xxxx"]  

原文链接:为你的 Hugo Fixit 主题博客制作文章合集

Buy me a coffee~
室长 支付宝支付宝
室长 微信微信
0%