From c627ff95d78021faacf2610ac186ae2e71bb58f8 Mon Sep 17 00:00:00 2001 From: Mei Akizuru Date: Thu, 25 Dec 2025 03:09:57 +0900 Subject: [PATCH 1/6] initialize hugo module --- go.mod | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 go.mod diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..a2101c3 --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module github.com/urandom-ctf/urandom-ctf.github.io + +go 1.25.5 From 13266464f72ee3578511b62b2f10c5dab0d9d7df Mon Sep 17 00:00:00 2001 From: Mei Akizuru Date: Thu, 25 Dec 2025 03:10:32 +0900 Subject: [PATCH 2/6] fix config to use our forked theme --- config.toml => hugo.toml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) rename config.toml => hugo.toml (93%) diff --git a/config.toml b/hugo.toml similarity index 93% rename from config.toml rename to hugo.toml index fbfd06c..d466534 100644 --- a/config.toml +++ b/hugo.toml @@ -13,10 +13,18 @@ languageCode = "ja-jp" # For RSS, view https://www.rssboard.org/rss-language-co defaultContentLanguage = "en" # For HTML page, now support: en, zh-hans, zh-hant, ja, nl, pl, it summaryLength = 100 # Custom summary length, add in post file to custom split point -paginate = 10 # googleAnalytics = "UA-000000000-0" # Set your Google Analytics UA here +[pagination] + pagerSize = 10 + +[module] + # Uncomment the following line and adjust the path to use local theme during development + # replacements = "github.com/urandom-ctf/hugo-theme-fuji -> ../../hugo-theme-fuji" + [[module.imports]] + path = "github.com/urandom-ctf/hugo-theme-fuji" + [outputFormats] [outputFormats.SearchIndex] isPlainText = true From b707647c539f032a499c9fedc07496a4996c2c78 Mon Sep 17 00:00:00 2001 From: Mei Akizuru Date: Thu, 25 Dec 2025 03:14:29 +0900 Subject: [PATCH 3/6] remove existing reference to the original fuji theme --- .gitmodules | 4 ---- themes/fuji | 1 - 2 files changed, 5 deletions(-) delete mode 160000 themes/fuji diff --git a/.gitmodules b/.gitmodules index edc01e4..e69de29 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,4 +0,0 @@ -[submodule "themes/fuji"] - path = themes/fuji - url = https://github.com/dsrkafuu/hugo-theme-fuji.git - diff --git a/themes/fuji b/themes/fuji deleted file mode 160000 index bca1c22..0000000 --- a/themes/fuji +++ /dev/null @@ -1 +0,0 @@ -Subproject commit bca1c2222aef812c840cf28d23f991dc1dae1599 From fc727f221cf2024717df9d460a1e1d9fda0003d0 Mon Sep 17 00:00:00 2001 From: Mei Akizuru Date: Thu, 25 Dec 2025 03:15:13 +0900 Subject: [PATCH 4/6] fix for 2024-12-26 c105: remove duplicated author tag --- content/post/2024-12-26-comiket105.md | 1 - 1 file changed, 1 deletion(-) diff --git a/content/post/2024-12-26-comiket105.md b/content/post/2024-12-26-comiket105.md index 5cf9c97..c19fb8d 100644 --- a/content/post/2024-12-26-comiket105.md +++ b/content/post/2024-12-26-comiket105.md @@ -1,7 +1,6 @@ --- title: "C105参加のお知らせ" date: 2024-12-26T19:27:36+09:00 -author: urandom author: yyu tags: - Publication From ecb75fea56d45a634f602cba219550017682aa96 Mon Sep 17 00:00:00 2001 From: Mei Akizuru Date: Thu, 25 Dec 2025 09:43:10 +0900 Subject: [PATCH 5/6] refer theme as module --- go.mod | 2 ++ go.sum | 2 ++ hugo.toml | 1 - 3 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 go.sum diff --git a/go.mod b/go.mod index a2101c3..32db633 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,5 @@ module github.com/urandom-ctf/urandom-ctf.github.io go 1.25.5 + +require github.com/urandom-ctf/hugo-theme-fuji v0.0.0-20251225001953-9a0ee8ebfa73 // indirect diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..26a5b51 --- /dev/null +++ b/go.sum @@ -0,0 +1,2 @@ +github.com/urandom-ctf/hugo-theme-fuji v0.0.0-20251225001953-9a0ee8ebfa73 h1:a4J11+lVtHeMxx/wamAYQzqqkH/IvYX85UrwjKUMOgQ= +github.com/urandom-ctf/hugo-theme-fuji v0.0.0-20251225001953-9a0ee8ebfa73/go.mod h1:DFg9ycvhpM7r13Xz6VFjx8sKi6FQwDFYjO1XuBWbDxM= diff --git a/hugo.toml b/hugo.toml index d466534..79b9dff 100644 --- a/hugo.toml +++ b/hugo.toml @@ -1,7 +1,6 @@ baseURL = "https://urandom.team" title = "urandom" -theme = "fuji" hasCJKLanguage = true enableEmoji = true enableRobotsTXT = true From 46e30111cea4e4aec0291ca9d0dfc0ec44531d02 Mon Sep 17 00:00:00 2001 From: Mei Akizuru Date: Thu, 25 Dec 2025 09:46:39 +0900 Subject: [PATCH 6/6] update hugo on build --- .github/workflows/deploy.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 69178a3..e82c422 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -2,7 +2,7 @@ name: Build and deploy on: push: - branches: + branches: - main - master pull_request: @@ -24,16 +24,16 @@ jobs: - name: Setup Pages id: pages uses: actions/configure-pages@v5 - + - name: Setup Hugo uses: peaceiris/actions-hugo@v3 with: - hugo-version: '0.119.0' + hugo-version: '0.153.2' extended: true - name: Build run: hugo --minify - + - name: Upload artifact uses: actions/upload-pages-artifact@v3 if: github.event_name != 'pull_request' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master')