You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RUN git clone --depth 1 --branch v0.4.5 https://github.com/hugo-fixit/FixIt.git themes/FixIt
30
-
31
-
# 生成配置文件
32
-
RUN cat > config.toml <<EOF
33
-
baseURL = "https://example.org/"
34
-
title = "My FixIt Site"
35
-
theme = "FixIt"
36
-
defaultContentLanguage = "zh-cn"
37
-
enableRobotsTXT = true
38
-
paginate = 10
39
-
40
-
[markup]
41
-
_merge = "shallow"
42
-
43
-
[outputs]
44
-
_merge = "shallow"
45
-
46
-
[taxonomies]
47
-
_merge = "shallow"
48
-
49
-
[params]
50
-
version = "4.x"
51
-
description = "A site built with Hugo FixIt theme"
52
-
keywords = ["Hugo", "FixIt", "Blog"]
53
-
defaultTheme = "auto"
54
-
EOF
55
-
56
-
# 创建首页(必须)
57
-
RUN cat > content/_index.md <<EOF
58
-
---
59
-
title: "Home"
60
-
---
61
-
Welcome to my FixIt site.
62
-
EOF
63
-
64
-
# 创建一篇示例文章
65
-
RUN mkdir -p content/posts && \
66
-
printf '%s\n''---''title: "Welcome to FixIt Docker"'"date: $(date +%Y-%m-%d)"'draft: false''---''''This is a default post. You can replace it by mounting your own content.' > content/posts/welcome.md
0 commit comments