feat: add shortcodes example
This commit is contained in:
parent
7a8231a5e9
commit
29b6c5c315
BIN
content/post/shortcodes/cover.jpg
Normal file
BIN
content/post/shortcodes/cover.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 13 KiB |
42
content/post/shortcodes/index.md
Normal file
42
content/post/shortcodes/index.md
Normal file
@ -0,0 +1,42 @@
|
||||
---
|
||||
title: Shortcodes
|
||||
description: Useful shortcodes that can be used in Markdown
|
||||
date: 2023-08-25 00:00:00+0000
|
||||
image: cover.jpg
|
||||
---
|
||||
|
||||
For more details, check out the [documentation](https://stack.jimmycai.com/writing/shortcodes).
|
||||
|
||||
## Bilibili video
|
||||
|
||||
{{< bilibili "BV1d4411N7zD" >}}
|
||||
|
||||
## Tencent video
|
||||
|
||||
{{< tencent "g0014r3khdw" >}}
|
||||
|
||||
## YouTube video
|
||||
|
||||
{{< youtube "0qwALOOvUik" >}}
|
||||
|
||||
## Generic video file
|
||||
|
||||
{{< video "https://www.w3schools.com/tags/movie.mp4" >}}
|
||||
|
||||
## Gist
|
||||
|
||||
{{< gist CaiJimmy e2751a943de10b2a5b3a8a6c2120cb86 >}}
|
||||
|
||||
## GitLab
|
||||
|
||||
{{< gitlab 2589724 >}}
|
||||
|
||||
## Quote
|
||||
|
||||
{{< quote author="A famous person" source="The book they wrote" url="https://en.wikipedia.org/wiki/Book">}}
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
||||
{{< /quote >}}
|
||||
|
||||
-----
|
||||
|
||||
> Photo by [Codioful](https://unsplash.com/@codioful) on [Unsplash](https://unsplash.com/photos/WDSN62Qdxuk)
|
Loading…
Reference in New Issue
Block a user