Skip to content

Commit 489d935

Browse files
committed
migrate to hugo
1 parent 5ce6e95 commit 489d935

328 files changed

Lines changed: 110 additions & 15359 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/gh-pages.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: github pages
2+
3+
on: ["push", "workflow_dispatch"]
4+
5+
jobs:
6+
deploy:
7+
runs-on: ubuntu-22.04
8+
steps:
9+
- uses: actions/checkout@v4
10+
with:
11+
submodules: true # Fetch Hugo themes (true OR recursive)
12+
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
13+
14+
- name: Setup Hugo
15+
uses: peaceiris/actions-hugo@v3
16+
with:
17+
hugo-version: '0.143.1'
18+
extended: true
19+
20+
- name: Build
21+
run: hugo --minify -F
22+
23+
- name: Deploy
24+
uses: peaceiris/actions-gh-pages@v3
25+
if: github.ref == 'refs/heads/main'
26+
with:
27+
github_token: ${{ secrets.GITHUB_TOKEN }}
28+
publish_dir: ./public
29+
user_name: 'github-actions[bot]'
30+
user_email: 'github-actions[bot]@users.noreply.github.com'
31+
commit_message: ${{ github.event.head_commit.message }}

.github/workflows/static.yml

Lines changed: 0 additions & 67 deletions
This file was deleted.

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "themes/hugo-PaperMod"]
2+
path = themes/hugo-PaperMod
3+
url = https://github.com/adityatelange/hugo-PaperMod.git

Makefile

Lines changed: 0 additions & 131 deletions
This file was deleted.

archetypes/default.md

Lines changed: 7 additions & 0 deletions

config.toml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
baseURL = "https://wizmann.top/"
2+
3+
languageCode = "zh-CN"
4+
DefaultContentLanguage = "zh-cn"
5+
HasCJKLanguage = true
6+
enableRobotsTXT = true
7+
8+
title = "Maerlyn's Rainbow"
9+
10+
theme = "PaperMod"
11+
pagination.pagerSize = 20
12+
13+
[Params]
14+
customCSS = ["css/custom.css"]
15+
copyright = "wizmann"
16+
readmore = true
17+
post_meta = ["date", "categories"]
18+
author = "wizmann"
19+
comments = true
20+
ShowPostNavLinks = true
21+
22+
[Params.style.vars]
23+
highlightColor = "#e22d30"
24+
25+
[Params.sidebar]
26+
home = "right"
27+
list = "right"
28+
single = "right"
29+
widgets = ["search", "recent", "categories", "taglist", "social"]
30+
31+
[services]
32+
[services.disqus]
33+
shortname = 'wizmann'

0 commit comments

Comments
 (0)