diff --git a/.gitmodules b/.gitmodules index d4a751f..e69de29 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +0,0 @@ -[submodule "themes/hugo-xmin"] - path = themes/hugo-xmin - url = https://github.com/jiacai2050/hugo-xmin.git diff --git a/config.toml b/config.toml index 0058b32..bbe65de 100644 --- a/config.toml +++ b/config.toml @@ -2,12 +2,15 @@ baseURL = 'https://ziglang.cc' languageCode = 'en' defaultContentLanguage = 'zh-cn' title = 'Zig 语言中文社区' -theme = "hugo-xmin" [[menu.main]] name = "主页" weight = 10 url = "/" +[[menu.main]] + name = "日报" + weight = 11 + url = "https://github.com/zigcc/forum/issues" [[menu.main]] name = "月刊" weight = 20 @@ -41,6 +44,15 @@ theme = "hugo-xmin" description = "" dateFormat = "Jan 2, 2006" gitRepo = "https://github.com/zigcc/zigcc.github.io" + [params.giscus] + repo = "zigcc/zigcc.github.io" + repoId = "R_kgDOHr7nSg" + category = "Announcements" + categoryId = "DIC_kwDOHr7nSs4CQUsK" + +[module] + [[module.imports]] + path = "github.com/jiacai2050/hugo-xmin" [frontmatter] date = [":filename", ":default", ":fileModTime"] diff --git a/content/_index.org b/content/_index.org index 29bec51..ed6c6f1 100644 --- a/content/_index.org +++ b/content/_index.org @@ -1,17 +1,25 @@ #+TITLE: Zig 语言中文社区 #+DATE: 2022-07-20T12:42:38+0800 -#+LASTMOD: 2024-03-30T10:19:55+0800 +#+LASTMOD: 2024-03-31T08:25:20+0800 {{< figure src="https://ziglang.cc/logo/zigcc-logo-2.svg" height="300px" >}} -[[https://ziglang.org/][Zig]] 语言中文社区,致力于分享、传播 Zig 语言在中文用户内的使用。 +#+begin_quote +[[https://ziglang.org/][Zig]] 语言中文社区(Zig Chinese Community,简称:ZigCC),致力于分享、传播 Zig 语言在中文用户内的使用。 + +[[/post/2023/09/05/hello-world/][欢迎 Zig 爱好者向本网站供稿]] +#+end_quote + #+BEGIN_EXPORT html - + + + + #+END_EXPORT @@ -29,18 +37,9 @@ - [[https://ziglang.cc/zig-cookbook/][Zig Cookbook]] :: A collection of simple Zig programs that demonstrate good practices to accomplish common programming tasks - [[https://github.com/zigcc/zig-idioms][zigcc/zig-idioms]] :: Common idioms used in Zig - [[https://github.com/zigcc/awesome-zig][zigcc/awesome-zig]] :: A collection of some awesome public Zig programming language projects. -* RSS 订阅 -- [[https://ask.ziglang.cc/atom.xml][论坛]] -- [[file:monthly/index.xml][月刊]] -* 月刊 -社区内的最新进展,信息来源:[[https://zig.news/top/month][Zig NEWS]]、[[https://zigmonthly.org/][Zig monthly]]、[[https://lobste.rs/t/zig][Lobsters]]、[[https://www.reddit.com/r/Zig/][Reddit]]、[[https://discu.eu/weekly/zig/][Zig weekly newsletter]]、[[https://ziggit.dev/][Ziggit]]、[[https://github.com/zigcc/forum/discussions/new?labels=%E6%9C%88%E5%88%8A&category=general][用户推荐]] - * 更新日志 - 2024-03-29 :: 使用自定义域名 ziglang.cc - 2022-12-10 :: 切换主题 [[https://github.com/zwbetz-gh/cupper-hugo-theme][cupper-hugo]] --> [[https://github.com/yihui/hugo-xmin][hugo-xmin]] - 2022-07-20 :: 首次上线 -* 社区供稿 -参见:[[https://ziglang.cc/post/2023/09/05/hello-world/]] - * 文章列表 diff --git a/content/monthly/_index.md b/content/monthly/_index.md deleted file mode 100644 index 28865b6..0000000 --- a/content/monthly/_index.md +++ /dev/null @@ -1,3 +0,0 @@ ---- -title: 月刊 ---- diff --git a/content/monthly/_index.org b/content/monthly/_index.org new file mode 100644 index 0000000..25914ad --- /dev/null +++ b/content/monthly/_index.org @@ -0,0 +1,7 @@ +#+TITLE: 月刊 +#+DATE: 2024-03-31T07:54:47+0800 +#+LASTMOD: 2024-03-31T07:55:34+0800 +#+AUTHOR: Jiacai Liu + +社区内的最新进展,信息来源:[[https://zig.news/top/month][Zig NEWS]]、[[https://zigmonthly.org/][Zig monthly]]、[[https://lobste.rs/t/zig][Lobsters]]、[[https://www.reddit.com/r/Zig/][Reddit]]、[[https://discu.eu/weekly/zig/][Zig weekly newsletter]]、[[https://ziggit.dev/][Ziggit]]、[[https://github.com/zigcc/forum/discussions/new?labels=%E6%9C%88%E5%88%8A&category=general][用户推荐]] +* 文章列表 diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..1fb7096 --- /dev/null +++ b/go.mod @@ -0,0 +1,5 @@ +module zigcc + +go 1.22.0 + +require github.com/jiacai2050/hugo-xmin v0.0.0-20240331002158-babdf0d1d9b1 // indirect diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..e4aef12 --- /dev/null +++ b/go.sum @@ -0,0 +1,2 @@ +github.com/jiacai2050/hugo-xmin v0.0.0-20240331002158-babdf0d1d9b1 h1:lJWRfn1mAZmc5H7E1cugTYVW5FmJVmzkNrVAt3u2pns= +github.com/jiacai2050/hugo-xmin v0.0.0-20240331002158-babdf0d1d9b1/go.mod h1:jk1RPrG0skT7WfLL98t2ocbOh1LCETPVHiKEKJO/Kso= diff --git a/layouts/partials/content_footer.html b/layouts/partials/content_footer.html index 2ee607c..8491f5b 100644 --- a/layouts/partials/content_footer.html +++ b/layouts/partials/content_footer.html @@ -1,13 +1,32 @@ +
© ZigCC 2022 – {{ now.Year }} | GitHub - | Mastodon - | RSS + | Discord | BY-NC-ND 4.0