mirror of
https://github.com/zopiya/blog.git
synced 2025-11-03 12:16:46 +08:00
Update deployment workflow and revise site config
This commit is contained in:
10
.github/workflows/deploy-pages.yml
vendored
10
.github/workflows/deploy-pages.yml
vendored
@@ -30,13 +30,13 @@ jobs:
|
|||||||
hugo-version: '0.147.0'
|
hugo-version: '0.147.0'
|
||||||
extended: true
|
extended: true
|
||||||
|
|
||||||
- name: Clone private wiki repository
|
- name: Clone private x-eden repository
|
||||||
run: |
|
run: |
|
||||||
rm -rf /tmp/wiki && git clone "${{ secrets.GITEA_REPO_CLONE }}" /tmp/wiki
|
rm -rf /tmp/x-eden && git clone "${{ secrets.GITEA_REPO_CLONE }}" /tmp/x-eden
|
||||||
if [ -d "/tmp/wiki/Personal/Blog" ]; then
|
if [ -d "/tmp/x-eden/60-writing/01-blog" ]; then
|
||||||
cp -r /tmp/wiki/Personal/Blog/* content/posts/ || exit 1
|
cp -r /tmp/x-eden/60-writing/01-blog/* content/posts/ || exit 1
|
||||||
else
|
else
|
||||||
echo "Wiki content not found"
|
echo "x-eden content not found"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
13
hugo.toml
13
hugo.toml
@@ -3,7 +3,7 @@
|
|||||||
#────────────────────────────────────────────
|
#────────────────────────────────────────────
|
||||||
baseURL = "https://zopiya.com/"
|
baseURL = "https://zopiya.com/"
|
||||||
languageCode = "zh"
|
languageCode = "zh"
|
||||||
title = "向阳而生"
|
title = "仲平"
|
||||||
theme = "typo"
|
theme = "typo"
|
||||||
defaultContentLanguage = "zh"
|
defaultContentLanguage = "zh"
|
||||||
hasCJKLanguage = true
|
hasCJKLanguage = true
|
||||||
@@ -70,7 +70,7 @@ enableRobotsTXT = true
|
|||||||
# 6. 主题参数
|
# 6. 主题参数
|
||||||
#────────────────────────────────────────────
|
#────────────────────────────────────────────
|
||||||
[params]
|
[params]
|
||||||
description = "愿我们都能:执着于热爱,纯粹于当下。"
|
description = "写作与思考的个人博客,记录文字、光影与生活中的片刻感悟。"
|
||||||
theme = "auto"
|
theme = "auto"
|
||||||
colorPalette = "base16-default"
|
colorPalette = "base16-default"
|
||||||
hideHeader = true
|
hideHeader = true
|
||||||
@@ -80,7 +80,7 @@ enableRobotsTXT = true
|
|||||||
listDateFormat = "2006 Jan"
|
listDateFormat = "2006 Jan"
|
||||||
homeDateFormat = "2 Jan"
|
homeDateFormat = "2 Jan"
|
||||||
homeIntroTitle = ""
|
homeIntroTitle = ""
|
||||||
homeIntroContent = """🌿愿我们都能:执着于热爱,纯粹于当下。"""
|
homeIntroContent = """🌿 张力孕育生命,合力塑造结果。而真正的艺术,是在万物之间寻求平衡。"""
|
||||||
homeCollectionTitle = "文辑"
|
homeCollectionTitle = "文辑"
|
||||||
homeCollection = "posts"
|
homeCollection = "posts"
|
||||||
|
|
||||||
@@ -130,13 +130,18 @@ enableRobotsTXT = true
|
|||||||
url = "https://github.com/zopiya"
|
url = "https://github.com/zopiya"
|
||||||
|
|
||||||
[[params.social]]
|
[[params.social]]
|
||||||
name = "gmail"
|
name = "x"
|
||||||
|
url = "https://x.com/zopiyaaa"
|
||||||
|
|
||||||
|
[[params.social]]
|
||||||
|
name = "maildotru"
|
||||||
url = "mailto:i@zopiya.com"
|
url = "mailto:i@zopiya.com"
|
||||||
|
|
||||||
[[params.social]]
|
[[params.social]]
|
||||||
name = "rss"
|
name = "rss"
|
||||||
url = "/rss.xml"
|
url = "/rss.xml"
|
||||||
|
|
||||||
|
|
||||||
#────────────────────────────────────────────
|
#────────────────────────────────────────────
|
||||||
# 8. Markdown 与高亮
|
# 8. Markdown 与高亮
|
||||||
#────────────────────────────────────────────
|
#────────────────────────────────────────────
|
||||||
|
|||||||
Reference in New Issue
Block a user