主题教程 #
短码使用 #
- content\docs*.md中引用
{{< video src="/1.mp4" >}}{{< /video >}}
- 在短码中配置(layouts/shortcodes/video.html)
<video controls width="100%">
<source {{ with .Get "src" }} src="{{.}}" {{ end }} type="video/mp4" />
{{ .Inner }}
</video>
图片相对文件位置 #
- ./post/1111-11-11.md引用当前目录下1.jpg编译后路径为./post/1111-11-11/1.jpg
- ./post/1111-11-11/index.md引用当前目录下1.jpg编译后路径为./post/1111-11-11/1.jpg
- ./post/1111-11-11/_index.md为子节点不要写文章,叶子节点的为index.md
Mermaid #
- 文档https://mermaid.nodejs.cn/
- https://mermaid.nodejs.cn/intro/
stateDiagram-v2 State1: The state with a note note right of State1 Important information! You can write notes. end note State1 --> State2 note left of State2 : This is the note to the left.
flowchart TD A[Christmas] -->|Get money| B(Go shopping) B --> C{Let me think} C -->|One| D[Laptop] C -->|Two| E[iPhone] C -->|Three| F[fa:fa-car Car]