From 26bc9c64eae7260e537511a575986f4d8f9e9baf Mon Sep 17 00:00:00 2001 From: Fam Zheng Date: Fri, 10 Apr 2026 22:23:49 +0100 Subject: [PATCH] init: hugo + PaperMod blog --- .gitignore | 1 + .gitmodules | 3 +++ .hugo_build.lock | 0 archetypes/default.md | 5 ++++ content/about.md | 13 +++++++++++ content/posts/hello-world.md | 10 ++++++++ hugo.toml | 45 ++++++++++++++++++++++++++++++++++++ themes/PaperMod | 1 + 8 files changed, 78 insertions(+) create mode 100644 .gitignore create mode 100644 .gitmodules create mode 100644 .hugo_build.lock create mode 100644 archetypes/default.md create mode 100644 content/about.md create mode 100644 content/posts/hello-world.md create mode 100644 hugo.toml create mode 160000 themes/PaperMod diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..364fdec --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +public/ diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..89af1b0 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "themes/PaperMod"] + path = themes/PaperMod + url = https://github.com/adityatelange/hugo-PaperMod.git diff --git a/.hugo_build.lock b/.hugo_build.lock new file mode 100644 index 0000000..e69de29 diff --git a/archetypes/default.md b/archetypes/default.md new file mode 100644 index 0000000..25b6752 --- /dev/null +++ b/archetypes/default.md @@ -0,0 +1,5 @@ ++++ +date = '{{ .Date }}' +draft = true +title = '{{ replace .File.ContentBaseName "-" " " | title }}' ++++ diff --git a/content/about.md b/content/about.md new file mode 100644 index 0000000..c7f9106 --- /dev/null +++ b/content/about.md @@ -0,0 +1,13 @@ +--- +title: "关于" +hidemeta: true +showToc: false +--- + +我是 Fam Zheng,软件工程师。 + +平时折腾系统基础设施、开发工具和 AI。喜欢造简单、可靠、好用的东西。 + +**找到我:** +- [GitHub](https://github.com/famz) +- [Gitea](https://git.famzheng.me) diff --git a/content/posts/hello-world.md b/content/posts/hello-world.md new file mode 100644 index 0000000..425c76b --- /dev/null +++ b/content/posts/hello-world.md @@ -0,0 +1,10 @@ +--- +title: "你好,世界" +date: 2026-04-10 +draft: false +summary: "第一篇,随便聊聊。" +--- + +开个博客,记录一下平时折腾的东西。 + +主要写写系统、工具、AI 相关的,偶尔可能聊点别的。没什么更新计划,有东西想写的时候就写。 diff --git a/hugo.toml b/hugo.toml new file mode 100644 index 0000000..0c07499 --- /dev/null +++ b/hugo.toml @@ -0,0 +1,45 @@ +baseURL = "https://famzheng.me/" +languageCode = "zh" +title = "Fam Zheng" +theme = "PaperMod" + +[pagination] + pagerSize = 10 + +[params] + env = "production" + description = "软件工程师。系统、AI,造点有意思的东西。" + author = "Fam Zheng" + showReadingTime = true + showShareButtons = false + showBreadCrumbs = false + showPostNavLinks = true + showCodeCopyButtons = true + defaultTheme = "auto" + + [params.homeInfoParams] + Title = "嗨" + Content = "我是 Fam,软件工程师。在系统基础设施和 AI 的交叉地带折腾。这里记录我在造什么、在想什么。" + + [[params.socialIcons]] + name = "github" + url = "https://github.com/famz" + + [[params.socialIcons]] + name = "gitea" + url = "https://git.famzheng.me" + +[menu] + [[menu.main]] + identifier = "posts" + name = "文章" + url = "/posts/" + weight = 1 + [[menu.main]] + identifier = "about" + name = "关于" + url = "/about/" + weight = 2 + +[outputs] + home = ["HTML", "RSS", "JSON"] diff --git a/themes/PaperMod b/themes/PaperMod new file mode 160000 index 0000000..893811a --- /dev/null +++ b/themes/PaperMod @@ -0,0 +1 @@ +Subproject commit 893811ac431f00ae22186d5a1be396e82db5577f