@@ -2,66 +2,102 @@ baseURL = 'https://ziglang.cc'
22languageCode = ' en'
33defaultContentLanguage = ' zh-cn'
44title = ' Zig 语言中文社区'
5+ description = ' Zig 语言中文社区'
56
6- [[menu .main ]]
7- name = " 主页"
8- weight = 10
9- url = " /"
107[[menu .main ]]
118 name = " 学习"
129 weight = 11
1310 url = " /learn"
14- [[menu .main ]]
15- name = " 日报"
16- weight = 15
17- url = " https://github.com/zigcc/forum/issues"
1811[[menu .main ]]
1912 name = " 月刊"
2013 weight = 20
2114 url = " /monthly"
2215[[menu .main ]]
23- name = " 文章 "
16+ name = " 博客 "
2417 weight = 21
2518 url = " /post"
2619[[menu .main ]]
27- name = " 新闻"
28- weight = 22
29- url = " /news"
30- [[menu .main ]]
31- name = " 论坛"
32- weight = 30
33- url = " https://ask.ziglang.cc"
34- # [[menu.main]]
35- # name = "关于"
36- # weight = 4
37- # url = "/about"
38- # [[menu.main]]
39- # name = "RSS"
40- # weight = 50
41- # url = "/index.xml"
20+ name = " 社区"
21+ weight = 40
22+ url = " /community"
4223
4324[params ]
44- description = " "
25+ github_repo = " https://github.com/zigcc/zigcc.github.io"
26+ offlineSearch = true
4527 dateFormat = " Jan 2, 2006"
46- gitRepo = " https://github.com/zigcc/zigcc.github.io"
4728 twitterCardEnabled = true
4829 [params .giscus ]
4930 repo = " zigcc/zigcc.github.io"
5031 repoId = " R_kgDOHr7nSg"
5132 category = " Announcements"
5233 categoryId = " DIC_kwDOHr7nSs4CQUsK"
5334
35+ [params .ui ]
36+ navbar_logo = false
37+ showLightDarkModeMenu = true
38+
39+ [params .copyright ]
40+ authors = """
41+ | [BY-NC-ND 4.0](https://creativecommons.org/licenses/by-nc-nd/4.0/)
42+ | <a rel="me" href="https://mastodon.social/@liujiacai">Mastodon</a>
43+ | [RSS](/index.xml)
44+ """
45+ from_year = 2022
46+ [params .links ]
47+ # End user relevant links. These will show up on left side of footer and in the community page if you have one.
48+ [[params .links .user ]]
49+ name = " GitHub Discussion"
50+ url = " https://github.com/orgs/zigcc/discussions"
51+ icon = " fab fa-github"
52+ [[params .links .user ]]
53+ name = " Discord"
54+ url = " https://discord.gg/UraRxD6WXD"
55+ icon = " fab fa-discord"
56+ [[params .links .user ]]
57+ name = " Telegram"
58+ url = " https://t.me/ZigChinese"
59+ icon = " fab fa-telegram"
60+ [[params .links .user ]]
61+ name = " 微信群"
62+ url = " https://github.com/orgs/zigcc/discussions/134"
63+ icon = " fab fa-weixin"
64+ [[params .links .user ]]
65+ name = " 微信公众号"
66+ url = " https://github.com/zigcc/.github/blob/main/zig_mp.png"
67+ icon = " fab fa-weixin"
68+ [[params .links .user ]]
69+ name = " 邮件"
70+ url = " mailto:hello@ziglang.cc"
71+ icon = " fa fa-envelope"
72+ desc = " 有任何疑问、建议,欢迎通过邮件与我们交流"
73+
74+ [[params .links .developer ]]
75+ name = " 文章供稿"
76+ url = " /post/2023/09/05/hello-world/"
77+ icon = " fab fa-blogger"
78+ desc = " 分享 Zig 使用经验"
79+ [[params .links .developer ]]
80+ name = " Zig 圣经"
81+ url = " https://course.ziglang.cc/"
82+ icon = " fa fa-book"
83+ desc = " 完善、改进圣经内容"
84+ [[params .links .developer ]]
85+ name = " 线上会议"
86+ url = " /post/news"
87+ icon = " fa-brands fa-meetup"
88+ desc = " 我们会定期举行线上会议,畅聊 Zig 中的一切"
89+
5490[module ]
91+ proxy = " https://goproxy.cn,direct"
5592 [[module .imports ]]
56- path = " github.com/jiacai2050/hugo-xmin "
93+ path = " github.com/google/docsy "
5794
5895[frontmatter ]
5996 date = [" :filename" , " :default" , " :fileModTime" ]
6097 lastmod = [' lastmod' , ' :git' , ' :fileModTime' , ' :default' ]
6198
6299[permalinks ]
63100 post = " /post/:year/:month/:day/:slug/"
64- news = " /news/:year/:month/:day/:slug/"
65101
66102[markup ]
67103 [markup .tableOfContents ]
@@ -70,7 +106,9 @@ title = 'Zig 语言中文社区'
70106 [markup .goldmark ]
71107 [markup .goldmark .renderer ]
72108 unsafe = true
109+ [markup .goldmark .parser .attribute ]
110+ block = true
73111 # https://gohugo.io/getting-started/configuration-markup/#highlight
74112 [markup .highlight ]
75113 style = " pygments"
76- linenos = true
114+ linenos = true
0 commit comments