Skip to content

Commit 73c985c

Browse files
committed
feat: config for standard theme & remove unused files & clean up code
* delete english and chinese translation files * remove render-link and go layout files * update mastodon layout to exclude media in api call * enhance comments section with new structure * update theme subproject reference Signed-off-by: Charles Chin <[email protected]>
1 parent d612d88 commit 73c985c

29 files changed

+350
-531
lines changed

assets/css/main.css

Lines changed: 32 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1047,6 +1047,9 @@
10471047
.h-6 {
10481048
height: calc(var(--spacing) * 6);
10491049
}
1050+
.h-7 {
1051+
height: calc(var(--spacing) * 7);
1052+
}
10501053
.h-8 {
10511054
height: calc(var(--spacing) * 8);
10521055
}
@@ -1056,6 +1059,9 @@
10561059
.h-12 {
10571060
height: calc(var(--spacing) * 12);
10581061
}
1062+
.h-13 {
1063+
height: calc(var(--spacing) * 13);
1064+
}
10591065
.h-16 {
10601066
height: calc(var(--spacing) * 16);
10611067
}
@@ -1594,6 +1600,9 @@
15941600
background-color: color-mix(in oklab, var(--color-black) 40%, transparent);
15951601
}
15961602
}
1603+
.bg-blue-500 {
1604+
background-color: var(--color-blue-500);
1605+
}
15971606
.bg-blue-600 {
15981607
background-color: var(--color-blue-600);
15991608
}
@@ -1689,6 +1698,12 @@
16891698
--tw-gradient-to: var(--color-zinc-600);
16901699
--tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
16911700
}
1701+
.fill-current {
1702+
fill: currentcolor;
1703+
}
1704+
.fill-white {
1705+
fill: var(--color-white);
1706+
}
16921707
.object-contain {
16931708
object-fit: contain;
16941709
}
@@ -1701,6 +1716,9 @@
17011716
.p-1 {
17021717
padding: calc(var(--spacing) * 1);
17031718
}
1719+
.p-1\.5 {
1720+
padding: calc(var(--spacing) * 1.5);
1721+
}
17041722
.p-2 {
17051723
padding: calc(var(--spacing) * 2);
17061724
}
@@ -1848,6 +1866,10 @@
18481866
font-size: var(--text-4xl);
18491867
line-height: var(--tw-leading, var(--text-4xl--line-height));
18501868
}
1869+
.text-5xl {
1870+
font-size: var(--text-5xl);
1871+
line-height: var(--tw-leading, var(--text-5xl--line-height));
1872+
}
18511873
.text-base {
18521874
font-size: var(--text-base);
18531875
line-height: var(--tw-leading, var(--text-base--line-height));
@@ -2281,12 +2303,6 @@
22812303
content: var(--tw-content);
22822304
}
22832305
}
2284-
.after\:mr-1 {
2285-
&::after {
2286-
content: var(--tw-content);
2287-
margin-right: calc(var(--spacing) * 1);
2288-
}
2289-
}
22902306
.after\:ml-2 {
22912307
&::after {
22922308
content: var(--tw-content);
@@ -2299,24 +2315,6 @@
22992315
opacity: 30%;
23002316
}
23012317
}
2302-
.after\:opacity-50 {
2303-
&::after {
2304-
content: var(--tw-content);
2305-
opacity: 50%;
2306-
}
2307-
}
2308-
.after\:content-\[\'\,\'\] {
2309-
&::after {
2310-
--tw-content: ',';
2311-
content: var(--tw-content);
2312-
}
2313-
}
2314-
.after\:content-\[\'\.\'\] {
2315-
&::after {
2316-
--tw-content: '.';
2317-
content: var(--tw-content);
2318-
}
2319-
}
23202318
.after\:content-\[\'❯\'\] {
23212319
&::after {
23222320
--tw-content: '❯';
@@ -2990,6 +2988,16 @@
29902988
display: flex;
29912989
}
29922990
}
2991+
.lg\:w-2\/5 {
2992+
@media (width >= 64rem) {
2993+
width: calc(2/5 * 100%);
2994+
}
2995+
}
2996+
.lg\:w-3\/5 {
2997+
@media (width >= 64rem) {
2998+
width: calc(3/5 * 100%);
2999+
}
3000+
}
29933001
.lg\:max-w-fit {
29943002
@media (width >= 64rem) {
29953003
max-width: fit-content;

assets/icons/eallion.svg

Lines changed: 1 addition & 0 deletions
Loading

assets/icons/title.svg

Lines changed: 1 addition & 0 deletions
Loading

config/_default/hugo.toml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
baseURL = 'https://www.eallion.com/'
2+
defaultContentLanguage = "zh-cn"
3+
languageCode = 'zh-cn'
4+
languageName = "简体中文"
5+
title = "eallion's Blog"
6+
theme = 'pehe'
7+
8+
summaryLength = 20 # <- 20 words are approximately 160 characters
9+
# googleAnalytics = 'G-MEASUREMENT_ID' # <- Your GA-4
10+
# disqusShortname = 'your-disqus-shortname' # <- Get form here : https://disqus.com
11+
12+
hasCJKLanguage = true
13+
14+
buildDrafts = false
15+
buildFuture = false
16+
17+
enableEmoji = true
18+
enableRobotsTXT = true
19+
20+
# Suppress warnings about raw HTML in Markdown
21+
ignoreLogs = ['warning-goldmark-raw-html']
22+
23+
ignoreFiles = [
24+
"data/llms/*"
25+
]
26+
27+
[pagination]
28+
pagerSize = 7 # <- Set the desired number of posts per page

config/_default/markup.toml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
[goldmark]
2+
[goldmark.renderer]
3+
unsafe = true
4+
hardWraps = true
5+
[goldmark.parser]
6+
wrapStandAloneImageWithinParagraph = false
7+
[goldmark.parser.attribute]
8+
block = true
9+
[goldmark.extensions]
10+
[goldmark.extensions.passthrough]
11+
enable = true
12+
[goldmark.extensions.passthrough.delimiters]
13+
block = [['\[', '\]'], ['$$', '$$']]
14+
inline = [['\(', '\)']]
15+
16+
[highlight]
17+
codeFences = true
18+
guessSyntax = true
19+
lineNos = false
20+
lineNumbersInTable = false
21+
lineNoStart = 1
22+
tabWidth = 2
23+
# false is a necessary configuration (https://github.com/dillonzq/LoveIt/issues/158)
24+
# false 是必要的设置 (https://github.com/dillonzq/LoveIt/issues/158)
25+
noClasses = false
26+
style = 'onedark'
27+
28+
[tableOfContents]
29+
endLevel = 5
30+
ordered = false
31+
startLevel = 3

config/_default/mediaTypes.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
["application/feed+json"]
2+
suffixes = ["feed"]

config/_default/menus.toml

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
# Menu 图标用 Pre 或 Post,且图标存放到 assets/icons/ 或 themes/pehe/assets/icons/
2+
[[main]]
3+
name = '首页'
4+
pageRef = '/'
5+
weight = 10
6+
[[main]]
7+
name = '嘀咕'
8+
pageRef = '/mastodon/'
9+
weight = 20
10+
# [[main]]
11+
# name = '统计'
12+
# pageRef = '/stats/'
13+
# weight = 25
14+
[[main]]
15+
name = '里程碑'
16+
pageRef = '/milestone/'
17+
weight = 35
18+
[[main]]
19+
name = '友情链接'
20+
pageRef = '/links/'
21+
weight = 45
22+
[[main]]
23+
name = 'About'
24+
pageRef = '/about'
25+
weight = 99
26+
27+
[[footer]]
28+
name = '首页'
29+
pageRef = '/'
30+
weight = 10
31+
[[footer]]
32+
name = '嘀咕'
33+
pageRef = '/mastodon/'
34+
weight = 20
35+
[[footer]]
36+
name = '统计'
37+
pageRef = '/stats/'
38+
weight = 25
39+
[[footer]]
40+
name = '里程碑'
41+
pageRef = '/milestone/'
42+
weight = 35
43+
[[footer]]
44+
name = '版权信息'
45+
pageRef = '/copyright/'
46+
weight = 36
47+
[[footer]]
48+
name = '隐私政策'
49+
pageRef = '/privacy-policy/'
50+
weight = 37
51+
[[footer]]
52+
name = '友情链接'
53+
pageRef = '/links/'
54+
weight = 45
55+
[[footer]]
56+
name = 'Status'
57+
url = 'https://status.eallion.com?rel=www.eallion.com'
58+
weight = 86
59+
post = "external-link"
60+
[[footer]]
61+
name = 'DeepWiki'
62+
url = 'https://deepwiki.com/eallion/eallion.com?rel=www.eallion.com'
63+
weight = 87
64+
post = "external-link"
65+
[[footer]]
66+
name = 'RSS'
67+
pre = "rss"
68+
url = '/index.xml'
69+
weight = 88
70+
[[footer]]
71+
name = 'llms.txt'
72+
url = '/llms.txt'
73+
weight = 89
74+
[[footer]]
75+
name = 'About'
76+
pageRef = '/about'
77+
weight = 99

config/_default/module.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[hugoVersion]
2+
extended = false
3+
min = "0.116.0"

config/_default/outputs.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
home = ["HTML", "RSS"]
2+
page = ["HTML"]
3+
section = ["HTML"]
4+
taxonomy = ["HTML"]
5+
term = ["HTML"]

config/_default/params.toml

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
hero = true
2+
selection_category = "精选"
3+
isoCode = "zh-cn"
4+
rtl = false
5+
dateFormat = "Jan 2, 2006"
6+
logo = "/eallion.webp"
7+
slogan = "Chance favors the prepared mind!"
8+
slogan_hover = "机会总是垂青于有准备的人!"
9+
preconnect = "https://images.eallion.com"
10+
creativecommons = "by-sa"
11+
copyright_name = "eallion.com"
12+
icp = "浙ICP备16031768号-2"
13+
description = 'Gemini, Millennials, Normie, Kōjigen, N24SWD, AIWS, Upekkha. Geeker, Gamer, Blogger.'
14+
keywords = ["Gemini", "Millennials", "Normie", "Kōjigen", "N24SWD", "AIWS", "Upekkha", "Geeker", "Gamer", "Blogger"]
15+
mainSections = 'blog'
16+
17+
# 是否开启外链跳转提示
18+
redirect = true
19+
# 外链跳转白名单域名列表
20+
safe_hosts = [
21+
"creativecommons.org",
22+
"e5n.cc",
23+
"eallion.com",
24+
"github.com",
25+
"gov.cn",
26+
"kubaicai.com"
27+
]
28+
29+
not_by_ai = true
30+
31+
nonbot = "https://nonbot.org/submissions/view/9cefed7c-dc57-4832-84ec-197314fda979"
32+
33+
# Powered_by to set: | hugo | theme | full |
34+
powered_by = "full"
35+
36+
# Save svg_title to 'assets/icons/title.svg'
37+
svg_title = "title"
38+
39+
# Global Follow to set: | mastodon | newsletter |
40+
follow = "mastodon"
41+
42+
# Site Social Media
43+
[[social]]
44+
name = "Mastodon"
45+
url = "https://e5n.cc/@eallion"
46+
icon = "mastodon"
47+
[[social]]
48+
name = "GitHub"
49+
url = "https://github.com/eallion"
50+
icon = "github"
51+
[[social]]
52+
name = "Twitter"
53+
url = "https://x.com/eallion"
54+
icon = "twitter"
55+
[[social]]
56+
name = "Steam"
57+
url = "https://steamcommunity.com/id/eallion"
58+
icon = "steam"
59+
60+
# Site.Author & Default Author (if no authors in data/authors/*.json)
61+
[Author]
62+
id = "eallion"
63+
name = 'Charles Chin'
64+
bio = 'Gemini, Millennials, Normie, Kōjigen, N24SWD, AIWS, Upekkha. Geeker, Gamer, Blogger.'
65+
avatar = '/eallion.webp'
66+
67+
68+
# Brand ID with svg
69+
svg = "eallion"
70+
71+
# Author Social Media
72+
social = [
73+
{ email = "[email protected]" },
74+
{ keyoxide = "https://keyoxide.org/E685DDDDDDDDDDDD" },
75+
{ mastodon = "@[email protected]" },
76+
{ github = "https://github.com/eallion" },
77+
{ steam = "https://steamcommunity.com/id/eallion" }
78+
]
79+
80+
[StyleName]
81+
# CDN 里的处理处理样式,如:https://cloud.tencent.com/document/product/436/42214
82+
delimiter = "!"
83+
style = "hugo.avif"
84+
featured = "hugo_featured.avif"
85+
card = "hugo_card.avif"
86+
list = "hugo_list.avif"
87+
88+
[verification]
89+
google = "9Mvl_9FEM5JphVmp-u9ljtlChFohWuBBFjlSS89QKVU"
90+
bing = "68A03C00DAFAD54E3739A8D372D9371B"
91+
yandex = "ff49a8cfbbaad423"
92+
pinterest = "b9e3534b99f9bd82f3b8688a1fa122a8"
93+
baidu = "ZWIiTFJWJkGQ11ZJ"
94+
so = "05afe845fd64ce6966deadce74479b5b"
95+
sogou = "SZM7r2UEOz"
96+
fediverse ="@[email protected]"
97+
98+
[rssnext]
99+
feedId = "42331815237783556"
100+
userId = "41909911558319104"

0 commit comments

Comments
 (0)