这是一篇新的博文

基础功能测试

技术性测试……

1
2
3
4
5
# 本地预览
hexo cl; hexo s

# 推送更新上线
hexo cl; hexo g; hexo d

语法高亮测试

JavaScript

1
2
3
4
5
6
7
8
9
10
11
12
function fibonacci(n) {
if (n <= 1) return n;
return fibonacci(n - 1) + fibonacci(n - 2);
}

const result = fibonacci(10);
console.log(`结果是:${result}`);

// 箭头函数和数组方法
const numbers = [1, 2, 3, 4, 5];
const doubled = numbers.map(n => n * 2);
console.log(doubled); // [2, 4, 6, 8, 10]

Python

1
2
3
4
5
6
7
8
9
10
11
12
import datetime

class BlogPost:
def __init__(self, title, date):
self.title = title
self.date = date

def summary(self):
return f"《{self.title}》发布于 {self.date}"

post = BlogPost("语法高亮测试", datetime.date.today())
print(post.summary())

HTML + CSS

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<title>测试页面</title>
<style>
.container {
display: flex;
justify-content: center;
background: #f5f5f5;
border-radius: 8px;
}
.title {
color: #e53935;
font-size: 1.5rem;
}
</style>
</head>
<body>
<div class="container">
<h1 class="title">Hello World!</h1>
</div>
</body>
</html>

图片嵌入测试

HTML图片标签

Markdown图片标签