Skip to content

Commit be660e9

Browse files
committed
update theme and use hugo module
1 parent 3e57b2a commit be660e9

File tree

16 files changed

+143
-199
lines changed

16 files changed

+143
-199
lines changed

assets/css/extended/custom.css

-5
This file was deleted.

assets/images/avatar.jpg

20.4 KB
Loading

assets/jsconfig.json

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"compilerOptions": {
3+
"baseUrl": ".",
4+
"paths": {
5+
"*": [
6+
"../../../Library/Caches/hugo_cache/modules/filecache/modules/pkg/mod/github.com/!cai!jimmy/hugo-theme-stack/[email protected]/assets/*"
7+
]
8+
}
9+
}
10+
}

config.toml

+118-60
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,46 @@
11
baseURL = "https://fity.me"
22
title = "Fity's Blog"
3-
theme = "PaperModX"
4-
DefaultContentLanguage = "zh" # Theme's display language, supports: en, fr, zh, zh-hant
3+
# theme = "hugo-theme-stack"
4+
DefaultContentLanguage = "zh-cn" # Theme's display language, supports: en, fr, zh, zh-hant
55
languageCode = "zh-cn"
66
copyright = "All rights reserved."
7-
googleAnalytics = "UA-127996141-1"
7+
# googleAnalytics = "UA-127996141-1"
88

99
enableRobotsTXT = true
1010
buildDrafts = false
1111
buildFuture = false
1212
buildExpired = false
1313

14+
[[module.imports]]
15+
path = "github.com/CaiJimmy/hugo-theme-stack/v3"
16+
1417
[languages]
1518

16-
[languages.zh]
17-
disabled = false
18-
languageCode = "zh"
19-
languageName = "ZH"
20-
weight = 0
21-
[languages.zh.params.homeInfoParams]
22-
Title = "中年自救记录"
23-
Content = "一名普通的贫穷码农,什么都不会。人到中年想自救。"
24-
25-
[languages.en]
26-
disabled = false
27-
languageCode = "en"
28-
languageName = "EN"
29-
weight = 1
30-
[languages.en.params.homeInfoParams]
31-
Title = "Wrinkly's poor life"
32-
Content = "A poor wrinkly with nothing useful skills. Here's a birdview of my life."
19+
[languages.zh-cn]
20+
disabled = false
21+
languageCode = "zh-cn"
22+
languageName = "ZH"
23+
weight = 0
24+
[languages.zh-cn.params.homeInfoParams]
25+
Title = "中年自救记录"
26+
Content = "一名普通的贫穷码农,什么都不会。人到中年想自救。"
27+
28+
[languages.en]
29+
disabled = false
30+
languageCode = "en"
31+
languageName = "EN"
32+
weight = 1
33+
[languages.en.params.homeInfoParams]
34+
Title = "Wrinkly's poor life"
35+
Content = "A poor wrinkly with nothing useful skills. Here's a birdview of my life."
3336

3437
[minify]
35-
disableXML = true
36-
minifyOutput = true
38+
disableXML = true
39+
minifyOutput = true
3740

3841
[params]
39-
TocSide = "right"
40-
env = "production" # to enable google analytics, opengraph, twitter-cards and schema
41-
title = "Fity's Blog" # will set 'og:site_name'
42+
env = "production" # to enable google analytics, opengraph, twitter-cards and schema
43+
title = "Fity's Blog" # will set 'og:site_name'
4244
description = "IT Guy with too much things to learn"
4345
keywords = ["Blog", "Portfolio"]
4446
author = "Fity"
@@ -50,53 +52,102 @@ ShowBreadCrumbs = true
5052
ShowCodeCopyButtons = false
5153
ShowWordCount = true
5254
ShowRssButtonInSectionTermList = true
53-
UseHugoToc = true
54-
showtoc = true
55-
tocopen = true
56-
comments = true
5755
EnableImageZoom = true
5856
57+
mainSections = ["posts", ]
58+
featuredImageField = "image"
59+
rssFullContent = true
60+
readingTime = true
61+
62+
[params.imageProcessing.cover]
63+
Enabled = true
64+
[params.imageProcessing.content]
65+
Enabled = true
66+
67+
[params.sidebar.avatar]
68+
Enabled = true
69+
Local = true
70+
Src = "images/avatar.jpg"
71+
72+
[params.Author]
73+
74+
75+
[params.article]
76+
headingAnchor = true
77+
math = true
78+
# toc = true
79+
readingTime = true
80+
81+
## Widgets
82+
# [[params.widgets.homepage]]
83+
# type = "search"
84+
85+
# [[params.widgets.homepage]]
86+
# type = "archives"
5987

60-
[params.homeInfoParams]
61-
Title = "中年自救记录"
62-
Content = "一名普通的贫穷码农,什么都不会。人到中年想自救。"
88+
# [[params.widgets.homepage]]
89+
# type = "categories"
6390

64-
[params.cover]
65-
responsiveImages = true
66-
linkFullImages = true
91+
[[params.widgets.page]]
92+
type = "toc"
6793

68-
[[params.socialIcons]]
69-
name = "GitHub"
70-
url = "https://github.com/fity"
71-
[[params.socialIcons]]
72-
name = "Email"
73-
url = "mailto:[email protected]"
74-
[[params.socialIcons]]
75-
name = "RSS"
76-
url = "/index.xml"
94+
[[widgets.homepage]]
95+
type = "tag-cloud"
7796

78-
[params.assets]
79-
favicon = "/images/favicon.ico"
97+
[params.artcle.license]
98+
enabled = false
99+
default = "Licensed under CC BY-NC-SA 4.0"
100+
101+
[params.comments]
102+
enabled = true
103+
provider = "waline"
104+
[params.comments.waline]
105+
serverURL = "https://comments.fity.me/"
106+
107+
[params.homeInfoParams]
108+
Title = "中年自救记录"
109+
Content = "一名普通的贫穷码农,什么都不会。人到中年想自救。"
110+
111+
[params.cover]
112+
responsiveImages = true
113+
linkFullImages = true
114+
115+
[[params.socialIcons]]
116+
name = "GitHub"
117+
url = "https://github.com/fity"
118+
[[params.socialIcons]]
119+
name = "Email"
120+
url = "mailto:[email protected]"
121+
[[params.socialIcons]]
122+
name = "RSS"
123+
url = "/index.xml"
124+
125+
[params.assets]
126+
favicon = "/images/favicon.ico"
80127

81128

82129
[markup]
83-
[markup.highlight]
84-
codeFences = true
85-
guessSyntax = false
86-
hl_Lines = ""
87-
lineNoStart = 1
88-
lineNos = false
89-
lineNumbersInTable = true
90-
noClasses = true
91-
style = "perldoc"
92-
tabWidth = 4
130+
[markup.highlight]
131+
codeFences = true
132+
guessSyntax = false
133+
hl_Lines = ""
134+
lineNoStart = 1
135+
lineNos = false
136+
lineNumbersInTable = true
137+
noClasses = true
138+
style = "perldoc"
139+
tabWidth = 4
93140

94141
[taxonomies]
95-
author = "Fity"
96-
tag = "tags"
97-
category = "categories"
98-
series = "series"
142+
author = "Fity"
143+
tag = "tags"
144+
category = "categories"
145+
series = "series"
99146

147+
[[menu.main]]
148+
url = "/posts"
149+
name = "Posts"
150+
weight = 1
100151
[[menu.main]]
101152
url = "/categories"
102153
name = "Categories"
@@ -117,3 +168,10 @@ weight = 5
117168
# url = "/index.xml"
118169
# name = "RSS"
119170
# weight = 6
171+
172+
[[menu.social]]
173+
identifier = "github"
174+
name = "Github"
175+
url = "https://github.com/fity"
176+
[menu.social.params]
177+
icon = "brand-github"

content/posts/2017-annually-post.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "年度更新2017"
3-
slug: "annually"
3+
slug: "annually-2017"
44
date: 2017-11-28T00:44:00+08:00
55
categories: ["年度更新"]
66
series: ["年度更新"]

content/posts/2018-annually-post.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "年度更新2018"
3-
slug: "annually"
3+
slug: "annually-2018"
44
date: 2019-04-12T00:44:00+08:00
55
categories: ["年度更新"]
66
series: ["年度更新"]

content/posts/2019-annually-post.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "年度更新2019"
3-
slug: "annually"
3+
slug: "annually-2019"
44
date: 2019-12-27T11:16:43+08:00
55
categories: ["年度更新"]
66
series: ["年度更新"]

content/posts/matepad-paper-review/index.md

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
---
22
title: "华为水墨屏平板 Matepad Paper 体验"
3-
cover:
4-
image: "/images/[email protected]"
3+
image: "images/[email protected]"
54
date: 2022-06-18T20:28:38+08:00
65
categories: ["try everything"]
76
tags: [Review]
87
draft: false
98
---
109
## 背景
1110

12-
背景当然是 `Kindle` 退出中国了。
13-
在此之前,移动阅读主要还是靠手机,为此去年换手机时还换了 `Max` 款。`Kindle` 主要拿来看 `Kindle` 商城有的书或者在 [图灵](https://www.ituring.com.cn/) 买的电子书。这两个地方加起来书其实还挺全的,奈何微信读书前几年实在太香了,很多书用体验卡就能读。所以一直想要一个能装微信读书的水墨屏设备。
11+
背景当然是 `Kindle` 退出中国了。
12+
在此之前,移动阅读主要还是靠手机,为此去年换手机时还换了 `Max` 款。`Kindle` 主要拿来看 `Kindle` 商城有的书或者在 [图灵](https://www.ituring.com.cn/) 买的电子书。这两个地方加起来书其实还挺全的,奈何微信读书前几年实在太香了,很多书用体验卡就能读。所以一直想要一个能装微信读书的水墨屏设备。
1413
恰好,最近文石又新出了一款小尺寸设备 `Poke 4`,立即加入购物车学习了一波,从 `Poke4` 看到 `Poke3`,再看到 `Note 5+`。文石的设备看了一圈,除了价格比同行贵一截,品控和售后口碑也不太行。在找另外的设备的时候就看到了 `Remarkable` 和华为的这款 `Matepad Paper`。两者价格差不多,`Remarkable` 主打手写体验,系统是 `Linux`,能装 `KOReader` 不能装微信读书。那么结论有了,买华为!
1514

1615
## 体验总结
@@ -69,5 +68,5 @@ draft: false
6968
2. 文章链接等共享因为需求不强烈,暂时没有解决。最简单的方案可以装个 `chrome` 浏览器,使用浏览器的书签同步功能
7069

7170
### 其他系统功能
72-
因为主要使用微信读书和 `KOReader`,所以不用系统的书城功能,也基本不用华为阅读(书架功能)。
71+
因为主要使用微信读书和 `KOReader`,所以不用系统的书城功能,也基本不用华为阅读(书架功能)。
7372
因为记笔记有另外的方案了,笔记功能只用于把 `Matepad Paper` 当纸质笔记本时使用。典型的使用场景是记会议纪要。其他时候使用不多。

go.mod

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module github.com/fity/fity.github.io
2+
3+
go 1.21.1
4+
5+
require github.com/CaiJimmy/hugo-theme-stack/v3 v3.30.0 // indirect

go.sum

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
github.com/CaiJimmy/hugo-theme-stack/v3 v3.30.0 h1:uITC7EKGyfPjyi3C5At++E0Uu1qQXtqiwMV4pd7LkLs=
2+
github.com/CaiJimmy/hugo-theme-stack/v3 v3.30.0/go.mod h1:IPmCXiIxlFSLFYS0tOmYP6ySLviyeNVSabyvSuaxD+I=

layouts/partials/comments.html

-17
This file was deleted.

layouts/partials/extend_head.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
{{- /* Head custom content area start */ -}}
33
{{- /* Insert any custom code (web-analytics, resources, etc.) - it will appear in the <head></head> section of every page. */ -}}
4-
<link rel="stylesheet" type="text/css" href="{{.Site.BaseURL}}/css/custom.css" />
4+
<!-- <link rel="stylesheet" type="text/css" href="{{.Site.BaseURL}}/css/custom.css" /> -->
55
{{- /* Can be overwritten by partial with the same name in the global layouts. */ -}}
66
{{- /* Head custom content area end */ -}}

layouts/shortcodes/bilibili.html

-37
This file was deleted.

layouts/shortcodes/innerlink.html

-27
This file was deleted.

0 commit comments

Comments
 (0)