teach
This commit is contained in:
parent
34f9072864
commit
7340030a39
BIN
.gitea/1.png
Normal file
BIN
.gitea/1.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 75 KiB |
BIN
.gitea/2.png
Normal file
BIN
.gitea/2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 69 KiB |
30
README.md
30
README.md
@ -0,0 +1,30 @@
|
|||||||
|
### 操作指南
|
||||||
|
1. 如果要修改数据,进入 `/opt/bsd/data` 目录下的 config.yaml
|
||||||
|
![1.png](./.gitea/1.png)
|
||||||
|
语法如下:
|
||||||
|
```yaml
|
||||||
|
# 活动配置
|
||||||
|
activities:
|
||||||
|
- title: 活动标题
|
||||||
|
coverImage: 封面图的地址, 为于 public 目录的相对路径
|
||||||
|
description: 活动描述
|
||||||
|
date: 日期
|
||||||
|
organizer: 组织者
|
||||||
|
|
||||||
|
- title: 示例
|
||||||
|
coverImage: /images/黄帝陵.JPG
|
||||||
|
description: 黄帝陵
|
||||||
|
date: 2024-07-22
|
||||||
|
organizer: mei
|
||||||
|
|
||||||
|
# 下面是摄影作品展示的配置
|
||||||
|
showcase:
|
||||||
|
- title: 壶口瀑布
|
||||||
|
image: /images/壶口-2.JPG
|
||||||
|
author: mei
|
||||||
|
date: 2024-07-15
|
||||||
|
```
|
||||||
|
|
||||||
|
2. 如果要上传图片,进入 `/opt/bsd/public` 目录,将图片放在此目录下,Node 会自动优化图片
|
||||||
|
![2.png](./.gitea/2.png)
|
||||||
|
访问上传的图片地址逻辑是: 例如在public目录下上传了一个 1.jpg 文件,那么你在第一个步骤中封面图的地址就应该填写 `/1.jpg`,不过建议创建目录来管理
|
@ -36,7 +36,7 @@ export default function Home() {
|
|||||||
playsInline
|
playsInline
|
||||||
className="absolute top-0 left-0 w-full h-full object-cover"
|
className="absolute top-0 left-0 w-full h-full object-cover"
|
||||||
>
|
>
|
||||||
<source src="https://c.mmeiblog.cn/d/share/newbili/%E5%BD%B1%E8%A7%86%E6%98%9F%E6%B2%B3%E7%89%87%E5%A4%B4.mp4" type="video/mp4" />
|
<source src="https://static.yingshixinghe.cn:4443/video.mp4" type="video/mp4" />
|
||||||
您的浏览器不支持视频标签。
|
您的浏览器不支持视频标签。
|
||||||
</video>
|
</video>
|
||||||
<div className="absolute top-0 left-0 w-full h-full bg-black opacity-50"></div>
|
<div className="absolute top-0 left-0 w-full h-full bg-black opacity-50"></div>
|
||||||
|
Loading…
Reference in New Issue
Block a user