Skip to content

Commit 2ebf750

Browse files
committed
fix
Signed-off-by: Zihan Kuang <zihan_kuang@outlook.com>
1 parent 073d886 commit 2ebf750

1 file changed

Lines changed: 29 additions & 10 deletions

File tree

  • content/en/cloud/academy/creating-your-learning-path

content/en/cloud/academy/creating-your-learning-path/index.md

Lines changed: 29 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -127,14 +127,14 @@ The Organization UID ensures that your learning content is securely associated w
127127
128128
If each course has its own markdown page, you can use this frontmatter:
129129
130-
```yaml
131-
---
132-
title: "Kubernetes Basics"
133-
description: "Learn the basics of Kubernetes"
134-
weight: 1
135-
banner: null # Optional
136-
---
137-
```
130+
```yaml
131+
---
132+
title: "Kubernetes Basics"
133+
description: "Learn the basics of Kubernetes"
134+
weight: 1
135+
banner: null # Optional
136+
---
137+
```
138138
139139
**Summary of Required Fields**
140140
@@ -158,11 +158,30 @@ Enhance your course with images and other visual aids. To ensure compatibility w
158158
**How to Add an Image**
159159
160160
1. Place your image file (e.g., `hugo-logo.png`) in your scoped static directory:
161-
`static/<your-organization-uid>/images/hugo-logo.png`
162-
2. In your `lesson-1.md` file, embed the image using the `usestatic` shortcode. The `path` is relative to your scoped static folder: ![The Hugo Logo]({{</* usestatic path="images/hugo-logo.png" */>}})
161+
162+
```text
163+
static/<your-organization-uid>/images/hugo-logo.png
164+
```
165+
2. In your `lesson-1.md` file, embed the image using the `usestatic` shortcode. The `path` is relative to your scoped static folder:
166+
167+
```text
168+
![The Hugo Logo]({{</* usestatic path="images/hugo-logo.png" */>}})
169+
```
163170
164171
Then the system will automatically convert this into the correct URL when building the site.
165172
173+
**How to Add a Video**
174+
175+
```text
176+
{{</* card
177+
title="Video: Example" */>}}
178+
<video width="100%" height="100%" controls>
179+
<source src="https://exmaple.mp4" type="video/mp4">
180+
Your browser does not support the video tag.
181+
</video>
182+
{{</* /card */>}}
183+
```
184+
166185
### 4. Build and Preview Locally
167186
168187
Before publishing, preview your content locally to check formatting and structure. Run the following command in your project directory:

0 commit comments

Comments
 (0)