Skip to content

Commit fdeab8c

Browse files
committed
use better hugo theme PaperMod
1 parent f890587 commit fdeab8c

3 files changed

Lines changed: 57 additions & 25 deletions

File tree

.gitmodules

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

config.toml

Lines changed: 53 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,86 @@
11
baseURL = "https://hobbytp.github.io/"
2-
languageCode = "zh-cn"
32
title = "My AI Blog"
3+
paginate = 5
4+
theme = "PaperMod"
5+
defaultContentLanguage = "zh"
46

5-
[module]
6-
[[module.imports]]
7-
path = "github.com/hugomods/tailwind"
7+
enableRobotsTXT = true
8+
buildDrafts = false
9+
buildFuture = false
10+
buildExpired = false
811

912
[params]
13+
env = "production"
14+
title = "My AI Blog"
1015
description = "一个关注 AI 各领域的专题博客"
11-
author = "Your Name"
16+
author = "Peng Tan"
17+
mainSections = ["posts"]
18+
ShowReadingTime = true
19+
ShowShareButtons = true
20+
ShowPostNavLinks = true
21+
ShowBreadCrumbs = true
22+
ShowCodeCopyButtons = true
23+
ShowToc = true
24+
25+
[params.profileMode]
26+
enabled = true
27+
title = "Peng Tan's AI Blog"
28+
subtitle = "关注 AI 领域的论文解读、最新技术、开源项目、知名人物访谈、动态和商业产品介绍"
29+
imageUrl = "/images/profile.jpg"
30+
imageTitle = "Peng Tan"
1231

13-
[markup]
14-
[markup.highlight]
15-
style = "dracula"
16-
[markup.goldmark.renderer]
17-
unsafe = true
32+
[[params.profileMode.buttons]]
33+
name = "论文解读"
34+
url = "/papers"
35+
36+
[[params.profileMode.buttons]]
37+
name = "技术解析"
38+
url = "/technologies"
39+
40+
[[params.profileMode.buttons]]
41+
name = "开源项目"
42+
url = "/projects"
1843

1944
[menu]
2045
[[menu.main]]
2146
name = "首页"
2247
url = "/"
2348
weight = 1
49+
2450
[[menu.main]]
2551
name = "论文解读"
26-
url = "/categories/papers/"
52+
url = "/papers"
2753
weight = 2
54+
2855
[[menu.main]]
2956
name = "技术解析"
30-
url = "/categories/technologies/"
57+
url = "/technologies"
3158
weight = 3
59+
3260
[[menu.main]]
3361
name = "开源项目"
34-
url = "/categories/projects/"
62+
url = "/projects"
3563
weight = 4
64+
3665
[[menu.main]]
3766
name = "人物访谈"
38-
url = "/categories/interviews/"
67+
url = "/interviews"
3968
weight = 5
69+
4070
[[menu.main]]
4171
name = "行业动态"
42-
url = "/categories/news/"
72+
url = "/news"
4373
weight = 6
74+
4475
[[menu.main]]
45-
name = "行业规范"
46-
url = "/categories/spec/"
76+
name = "产品介绍"
77+
url = "/products"
4778
weight = 7
79+
4880
[[menu.main]]
49-
name = "产品介绍"
50-
url = "/categories/products/"
81+
name = "搜索"
82+
url = "/search"
5183
weight = 8
5284

53-
[taxonomies]
54-
category = "categories"
55-
tag = "tags"
56-
57-
[permalinks]
58-
pages = "/:filename/"
85+
[outputs]
86+
home = ["HTML", "RSS", "JSON"]

themes/PaperMod

Submodule PaperMod added at 72615b6

0 commit comments

Comments
 (0)