Skip to content

Commit a019489

Browse files
committed
updater
1 parent 47470f5 commit a019489

6 files changed

Lines changed: 252 additions & 55 deletions

File tree

about_new.md

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
---
2+
navlevel: header
3+
layout: page
4+
title: 关于我
5+
permalink: /about/
6+
---
7+
## 👋 你好!
8+
9+
我是一名斜杠青年,简直到了杠精的地步。这是我的个人博客,分享我在各个乱七八糟方面的心得体会。
10+
11+
## 💻 程序员 (60%)
12+
13+
我是一名程序员。在程序员这个范畴里也是非常斜杠的。
14+
15+
29岁高龄的我做过大数据,go服务器开发,c++服务器开发,c++客户端开发,渲染开发,ai开发,全栈开发。除此之外也开发过游戏。
16+
17+
大概会用这么些工具
18+
19+
- copilot离了就不想写代码了。
20+
- vscode, emacs曾经花了很多时间。
21+
- go, c++, python, rust, typescript.
22+
23+
## 🎵 音乐爱好者 (5%)
24+
25+
我是一个爵士吉他学习者,说实话没怎么好好学。
26+
27+
程度只能看懂谱子,弹一些chord melody. 不溜音阶就弹不利索。
28+
29+
## 🎵 绘画学习者 (5%)
30+
31+
我在学绘画,只会一点点素描和丙烯。
32+
33+
希望可以多加练习,往板绘方向发展。想要练习一些速写。
34+
35+
主要目的是培养审美,现在看下来确实有用,学了很多才能积累下来一点点。
36+
37+
## 🎵 数学学习者 (5%)
38+
39+
受现公司的企业文化影响,我在学数学,从拓扑出发。
40+
41+
希望可以学到一些有用的知识,目前学下来感觉都没什么用。
42+
43+
## 🐧 Linux使用者 (10%)
44+
45+
我是一名忠实的Linux用户,在家使用Gentoo Linux搭配KDE桌面环境。
46+
47+
### 硬件配置
48+
49+
- CPU: AMD R3700X
50+
- GPU: NVIDIA RTX 4070Ti
51+
52+
## 🎮 其他兴趣 (5%)
53+
54+
### 游戏爱好
55+
56+
我是任天堂的忠实粉丝,特别喜欢马里奥和宝可梦系列。
57+
58+
### 个人发展
59+
60+
- 持续学习新技术
61+
- 保持开放心态,尝试新事物
62+
63+
## 📞 联系方式
64+
65+
如果你想与我交流,可以通过以下方式联系我:
66+
67+
- GitHub: [ppphp](https://github.com/ppphp)
68+
- Email: [通过GitHub联系我](https://github.com/ppphp)
69+
70+
---
71+
72+
*最后更新: 2024-01-29*

build.sh

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
#!/bin/bash
2+
3+
# 构建脚本 - 用于更新和构建Hugo网站
4+
5+
set -e # 遇到错误时立即退出
6+
7+
echo "========================================="
8+
echo "Hugo网站构建脚本"
9+
echo "========================================="
10+
11+
echo "步骤1: 检查Hugo是否安装..."
12+
if ! command -v hugo &> /dev/null; then
13+
echo "错误: Hugo未安装,请先安装Hugo"
14+
exit 1
15+
fi
16+
echo "Hugo版本: $(hugo version)"
17+
18+
echo ""
19+
echo "步骤2: 更新Hugo模块..."
20+
hugo mod get -u || echo "警告: 模块更新可能有问题,但继续构建..."
21+
22+
echo ""
23+
echo "步骤3: 清理旧的构建文件..."
24+
rm -rf public/*
25+
echo "清理完成"
26+
27+
echo ""
28+
echo "步骤4: 构建网站..."
29+
if hugo; then
30+
echo "构建成功!网站文件已生成到public目录"
31+
else
32+
echo "错误: 构建失败"
33+
exit 1
34+
fi
35+
36+
echo ""
37+
echo "========================================="
38+
echo "构建完成!"
39+
echo "========================================="
40+
41+
# 如果需要部署到GitHub Pages,取消下面的注释
42+
# echo ""
43+
# echo "步骤5: 部署到GitHub Pages..."
44+
# ./gh-pages

config.yml

Lines changed: 127 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ baseURL: 'https://ppphp.github.io/'
22
languageCode: 'zh-cn'
33
title: "a usr/bin"
44

5-
enableRobotsTXT: true
5+
enableRobotsTXT: true
66
buildDrafts: false
77
buildFuture: false
88
buildExpired: false
@@ -12,71 +12,75 @@ minify:
1212
disableXML: true
1313
minifyOutput: true
1414

15-
DisqusShortname: 'ppphp-1'
16-
1715
params:
1816
comments: true
19-
20-
title: ExampleSite
21-
description: "ExampleSite description"
22-
keywords: [Blog, Portfolio, PaperMod]
17+
disqusShortname: 'ppphp-1'
18+
social:
19+
- name: github
20+
url: "https://github.com/ppphp"
21+
- name: twitter
22+
url: "https://twitter.com/"
23+
- name: stackoverflow
24+
url: "https://stackoverflow.com"
25+
- name: rss
26+
url: "/index.xml"
27+
28+
title: "a usr/bin"
29+
description: "个人技术博客,分享编程、工具使用和思考"
30+
keywords: [博客, 技术, 编程, 工具, 思考]
2331
author: ppphp
2432
DateFormat: "2006-1-2"
33+
defaultTheme: auto
34+
disableThemeToggle: false
2535

2636
ShowReadingTime: true
2737
ShowShareButtons: true
2838
ShowPostNavLinks: true
2939
ShowBreadCrumbs: true
30-
ShowCodeCopyButtons: false
40+
ShowCodeCopyButtons: true
3141
ShowWordCount: true
3242
ShowRssButtonInSectionTermList: true
3343
UseHugoToc: true
3444
disableSpecial1stPost: false
3545
disableScrollToTop: false
3646
hidemeta: false
3747
hideSummary: false
38-
showtoc: false
48+
showtoc: true
3949
tocopen: false
50+
4051
# profile-mode
4152
profileMode:
42-
enabled: false # needs to be explicitly set
43-
title: ExampleSite
44-
subtitle: "This is subtitle"
45-
imageUrl: "<img location>"
53+
enabled: false
54+
title: "a usr/bin"
55+
subtitle: "个人技术博客"
56+
imageUrl: "img/avatar.png"
4657
imageWidth: 120
4758
imageHeight: 120
48-
imageTitle: my image
59+
imageTitle: "avatar"
4960
buttons:
50-
- name: Posts
61+
- name: 文章
5162
url: posts
52-
- name: Tags
63+
- name: 标签
5364
url: tags
65+
- name: 归档
66+
url: archives
5467

5568
# home-info mode
5669
homeInfoParams:
57-
Title: "Hi there \U0001F44B"
58-
Content: Welcome to my blog
70+
Title: "Hi there 👋"
71+
Content: "欢迎来到我的个人技术博客,这里分享我在编程、工具使用和思考方面的心得体会。"
5972

6073
cover:
61-
hidden: true # hide everywhere but not in structured data
62-
hiddenInList: true # hide on list pages and home
63-
hiddenInSingle: true # hide on single page
64-
74+
hidden: true
75+
hiddenInList: true
76+
hiddenInSingle: true
6577

6678
editPost:
6779
URL: "https://github.com/ppphp/ppphp.github.io/tree/master/content"
68-
Text: "Suggest Changes" # edit text
69-
appendFilePath: true # to append file path to Edit link
70-
71-
72-
socialIcons:
73-
- name: twitter
74-
url: "https://twitter.com/"
75-
- name: stackoverflow
76-
url: "https://stackoverflow.com"
77-
- name: github
78-
url: "https://github.com/"
80+
Text: "建议修改"
81+
appendFilePath: true
7982

83+
# 搜索优化
8084
fuseOpts:
8185
isCaseSensitive: false
8286
shouldSort: true
@@ -86,39 +90,116 @@ params:
8690
minMatchCharLength: 0
8791
keys: ["title", "permalink", "summary", "content"]
8892

93+
# 社交媒体图标
94+
socialIcons: []
95+
96+
# SEO设置
97+
env: production
98+
analytics:
99+
google:
100+
SiteVerificationTag: ""
101+
89102
menu:
90103
main:
104+
- identifier: home
105+
name: 首页
106+
url: /
107+
weight: 10
108+
- identifier: posts
109+
name: 文章
110+
url: /posts/
111+
weight: 20
91112
- identifier: archives
92-
name: archives
113+
name: 归档
93114
url: /archives/
94-
weight: 10
115+
weight: 30
95116
- identifier: categories
96-
name: categories
117+
name: 分类
97118
url: /categories/
98-
weight: 10
119+
weight: 40
99120
- identifier: tags
100-
name: tags
121+
name: 标签
101122
url: /tags/
102-
weight: 20
123+
weight: 50
124+
- identifier: search
125+
name: 搜索
126+
url: /search/
127+
weight: 60
103128
- identifier: works
104-
name: works
129+
name: 作品
105130
url: /works/
106-
weight: 10
107-
# Read: https://github.com/adityatelange/hugo-PaperMod/wiki/FAQs#using-hugos-syntax-highlighter-chroma
131+
weight: 70
132+
133+
# 代码高亮设置
108134
pygmentsUseClasses: true
109135
markup:
136+
goldmark:
137+
renderer:
138+
unsafe: true
139+
parser:
140+
attribute:
141+
block: true
142+
title: true
110143
highlight:
111144
noClasses: false
112-
# anchorLineNos: true
113-
# codeFences: true
114-
# guessSyntax: true
115145
lineNos: true
146+
lineNumbersInTable: true
116147
style: monokai
148+
guessSyntax: true
149+
codeFences: true
150+
151+
# 模块设置
117152
module:
118153
imports:
119154
- path: github.com/adityatelange/hugo-PaperMod
155+
# 使用最新版本的PaperMod主题
156+
disable: false
157+
158+
# 输出设置
120159
outputs:
121160
home:
122161
- HTML
123162
- RSS
124-
- JSON # is necessary
163+
- JSON
164+
section:
165+
- HTML
166+
- RSS
167+
taxonomy:
168+
- HTML
169+
- RSS
170+
term:
171+
- HTML
172+
- RSS
173+
174+
# 隐私设置
175+
privacy:
176+
youtube:
177+
disable: false
178+
privacyEnhanced: true
179+
vimeo:
180+
disable: false
181+
enableDNT: true
182+
x:
183+
disable: false
184+
enableDNT: true
185+
instagram:
186+
disable: false
187+
simple: true
188+
googleAnalytics:
189+
disable: true
190+
191+
# 安全设置
192+
security:
193+
enableInlineShortcodes: false
194+
exec:
195+
allow:
196+
- dart-sass-embedded
197+
- go run
198+
- go
199+
osEnv:
200+
- (?i)^(PATH|PATHEXT|APPDATA|TMP|TEMP|TERM)$
201+
funcs:
202+
- getenv
203+
allowExec: true
204+
allowOSExec: true
205+
allowExecOrigin: []

content/posts/2022-04-04-go-1.18.org

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#+TITLE: go 1.18
2-
#+DATE: 2022-04-.4
2+
#+DATE: 2022-04-04
33
#+TAGS[]: go
44

55
go 1.18带入了一个非常重要的特性,type parameter类型参数,所以特地学习一下这个版本。

content/search.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
2-
title: "Search" # in any language you want
3-
layout: "search" # is necessary
4-
# url: "/archive"
5-
# description: "Description for Search"
6-
summary: "search"
7-
placeholder: "placeholder text in search input box"
2+
title: "搜索"
3+
layout: "search"
4+
url: "/search/"
5+
description: "搜索本站内容"
6+
summary: "搜索"
7+
placeholder: "输入关键词搜索..."
88
---

0 commit comments

Comments
 (0)