Hello World

Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.

Quick Start

Create a new post

1
$ hexo new "My New Post"

More info: Writing

Run server

1
$ hexo server

More info: Server

Generate static files

1
$ hexo generate

More info: Generating

Deploy to remote sites

1
$ hexo deploy

More info: Deployment

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
code:
copy_btn: true # 开启复制按钮
language: # 代码语言
enable: true
default: "TEXT"
highlight: # 代码高亮
enable: true
line_number: true # 代码块是否显示行号
lib: "highlightjs" # 实现高亮的库(highlightjs | prismjs)二选一,对应下面的设置

highlightjs:
style: "gradient-dark" # (style 选项参考https://highlightjs.org/demo/)
style_dark: "dark"

prismjs:
# 在下方链接页面右侧的圆形按钮挑选 style 填入,也可以直接填入 css 链接
# Select the style button on the right side of the link page, you can also set the CSS link
# See: https://prismjs.com/
style: "default"
style_dark: "tomorrow night"

# 设为 true 高亮将本地静态生成(但只支持部分 prismjs 插件),设为 false 高亮将在浏览器通过 js 生成
# If true, it will be generated locally (but some prismjs plugins are not supported). If false, it will be generated via JS in the browser
preprocess: true

Hello World
http://yylustb.github.io/2025/01/01/hello-world/
作者
yylustb
发布于
2025年1月1日
许可协议