Theme Preview

Hue:

You are using an outdated browser that does not support OKLCH colors. The color setting will not take effect.

我的第一篇技术文章

487 词

这位一篇尝试的指导博客,是个人的第一篇博客。( ̄▽ ̄* )ゞ

新帖子

每次增加新的帖子时,通过指令

1
hexo new "新帖子标题"

或者手动在source/_posts中手动创建一个.md文件和相应的文件夹

编辑新的帖子的md文件。

编辑之后再运行

1
hexo s # 或hexo server(s的全写)

再产生新的文件

1
hexo g # 或hexo generate

并部署

1
hexo d # 或hexo deploy

新帖子注意事项

开头加上分类和标签实现管理

1
2
3
4
5
6
7
8
9
10
11
12
13
14
---
title: Hello World
date: 2024-01-01 12:00:00
categories:
- 博客搭建
- Hexo教程
tags:
- Hexo
- 博客
- 入门指南
- 静态网站
photos:
- /images/小丑.jpg
---

应因为加上了title属性,所以原始的md文件可以不加一级标题。

以上属性均为可选。

插入图片

插入图片时,在source文件夹中创建一个文件夹,将图片放入其中,然后在md文件中使用![]()的形式插入图片。

1
![图片描述](images/图片文件夹/图片名.png)