关于 About
本博客由 Hugo 搭建,由于框架非常简单,事实上我并没有做什么实质性的工作,多半就是在已有的模板上修修改改而已。
主题 Theme
大部分主题样式照搬了 Hugo Theme Stack,自己做了一些修改,希望以后可以自己完善或添加一些功能。
寄语 Message
希望能在这里分享一些我在学习过程中遇到问题然后解决的方法,希望能坚持下去。
测试 Test
以下为测试内容,旨在覆盖各种 Markdown 语法及 Hugo Shortcodes 的渲染效果。
1. 排版与格式
基础文本样式
这是粗体文本 This is bold text
这是斜体文本 This is italic text
这是粗体加斜体文本 This is bold and italic text
这是删除线文本 This is strikethrough text
这是下划线文本 This is underline text
这是高亮文本 This is highlighted text
HTML 元素
GIF is a bitmap image format.
H2O
Xn + Yn = Zn
Press CTRL + ALT + Delete to end the session.
Emoji
Hello! 👋
颜色可视化
这是一个颜色示例 #FF0000 和另一个颜色 rgb(0, 255, 0),这是正常的代码 text。
2. 列表与表格
无序与有序列表
- 无序列表项 1
- 嵌套无序列表项 1.1
- 嵌套无序列表项 1.2
- 无序列表项 2
- 有序列表项 1
- 有序列表项 2
- 嵌套有序列表项 2.1
- 嵌套有序列表项 2.2
任务列表
- 已完成任务
- 未完成任务
表格
| 表头 1 | 表头 2 | 表头 3 |
|---|---|---|
| 内容 1 | 内容 2 | 内容 3 |
| 内容 4 | 内容 5 | 内容 6 |
| 内容 7 | 内容 8 | 内容 9 |
3. 引用与提示
基础引用
这是一个引用块。
引用块中的代码text。
带有脚注的引用
Don’t communicate by sharing memory, share memory by communicating. — Rob Pike1
A footnote can also have multiple lines2.
带源的引用 (Shortcode)
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
― A famous person, The book he wrote
提示块 (Alerts)
NOTE
Useful information that users should know, even when skimming content.
TIP
Helpful advice for doing things better or more easily.
IMPORTANT
Key information users need to know to achieve their goal.
WARNING
Urgent info that needs immediate user attention to avoid problems.
CAUTION
Advises about risks or negative outcomes of certain actions.
4. 代码与数学
代码块
# 中文测试
def hello_world():
print("Hello, World!")
[dependencies.bevy]
git = "https://github.com/bevyengine/bevy"
rev = "11f52b8c72fc3a568e8bb4a4cd1f3eb025ac2e13"
- features = ["dynamic"]
+ features = ["jpeg", "dynamic"]
数学公式 ($\KaTeX$)
行内公式: $E=mc^2$,$\KaTeX$ 支持。
块级公式:
$$ x_{1,2} = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a} $$Mermaid 图表
graph TD;
A-->B;
A-->C;
B-->D;
C-->D;
5. 媒体与交互
链接
点击访问 Hugo 官网
图片
Bilibili 视频
PDF 查看
折叠内容
点击展开内容
这是折叠内容。
6. 长文本测试
中文长文本
照顾病人、跟随病人很重要,但会发生在这样的时候,有很多工作和痛苦。细究起来,任何人都不应该从事任何一种工作,除非他能从中得到一些好处。不要在愤怒中在痛苦中在斥责中在快乐中他想要成为一根头发,从痛苦中希望没有滋生。除非被情欲蒙蔽,否则他们就没有过错;那些放弃职责、软化灵魂的人,即劳动者。
English Long Text
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
字体 Fonts
本博客主要使用以下字体:
- 中文字体:霞鹜新致宋、霞鹜文楷
- 英文字体:Recursive
- 代码字体:Cascadia Code(代码中中文部分使用霞鹜文楷)
- 签名字体:Dancing Script