Skip to content

Commit 5d63c02

Browse files
authored
Merge pull request #795 from zihanKuang/add-badge
Add badge metadata to Certification and Learning Path content
2 parents 207d4e2 + b5f5952 commit 5d63c02

2 files changed

Lines changed: 16 additions & 3 deletions

File tree

  • content/en/cloud/academy/creating-content

content/en/cloud/academy/creating-content/building-certifications/index.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,11 @@ weight: 1
9393
tags: [layer5, cloud, infrastructure]
9494
level: "beginner"
9595
categories: "platform"
96+
badge:
97+
png: "https://images.credly.com/images/f28f1d88-428a-47f6-95b5-7da1dd6c1000/twitter_thumb_201604_KCNA_badge.png"
98+
svg: "https://images.credly.com/images/f28f1d88-428a-47f6-95b5-7da1dd6c1000/twitter_thumb_201604_KCNA_badge.png"
99+
title: "Layer5 Certified"
100+
description: "Earn the Certification badge to showcase your expertise in Layer5 cloud services."
96101
---
97102
```
98103

@@ -107,10 +112,11 @@ categories: "platform"
107112
| `title` || The human-readable title that will be displayed to users. |
108113
| `description` || A comprehensive summary of the certification's scope and objectives. |
109114
| `weight` | - | Controls the display order (lower numbers appear first). Items are sorted alphabetically by title if not specified.|
110-
| `banner` | - | Path to an image in the `static` folder, e.g., `images/icon.svg`. |
115+
| `banner` | - | Path to a banner image located in the same folder (Page Bundle). |
111116
| `tags` | - | Keywords for content discovery. Multiple tags can be selected. |
112117
| `level` | - | A string for the intended difficulty (`beginner`, `intermediate`, `advanced`). Default: `beginner`. |
113118
| `categories` | - | A string that assigns the certification to a specific category. |
119+
| `badge` | - | Defines the awarded digital badge. The png and svg fields accept either a full remote URL or a local file path for an image in the same folder (e.g., layer5-badge.svg).|
114120

115121
### 3. Add Content and Exams
116122

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

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,11 @@ Now, inside your academy repository, you should see the following top-level fold
145145
tags: [kubernetes, infrastructure]
146146
categories: "cloud"
147147
level: "beginner"
148+
badge:
149+
png: "https://images.credly.com/images/f28f1d88-428a-47f6-95b5-7da1dd6c1000/twitter_thumb_201604_KCNA_badge.png"
150+
svg: "https://images.credly.com/images/f28f1d88-428a-47f6-95b5-7da1dd6c1000/twitter_thumb_201604_KCNA_badge.png"
151+
title: "Layer5 Certified"
152+
description: "Earn the Certification badge to showcase your expertise in Layer5 cloud services."
148153
---
149154
```
150155

@@ -176,11 +181,13 @@ Now, inside your academy repository, you should see the following top-level fold
176181
| All | `weight` | - | Controls the display order (lower numbers appear first). Items are sorted alphabetically by title if not specified.|
177182
| All | `draft` | - | If `true`, the page will not be published. |
178183
| All | `type` || Defines the content's role. Optional values: `challenge`, `learning-path`, `certification`, `course`, `module`, `page`, `test`, or `lab`. |
179-
| **Learning Path**, **Course** | `level` | - | A string for the intended difficulty (`beginner`, `intermediate`, `advanced`). Default: `beginner`. |
180184
| **Learning Path** | `id` || **Crucial.** A stable UUID for tracking progress. **Do not change.** |
185+
| **Learning Path** | `badge` | - | Defines the awarded digital badge. The png and svg fields accept either a full remote URL or a local file path for an image in the same folder (e.g., layer5-badge.svg).|
186+
| **Learning Path**, **Course** | `level` | - | A string for the intended difficulty (`beginner`, `intermediate`, `advanced`). Default: `beginner`. |
187+
| **Learning Path**, **Course** | `banner` | - | Path to a banner image located in the same folder (Page Bundle). |
181188
| **Learning Path**, **Course**, **module** | `tags` | - | Keywords for content discovery. Multiple tags can be selected. |
182189
| **Learning Path**, **Course**, **module** | `categories` | - | The main categories for the content. Only one can be selected. |
183-
| **Learning Path**, **Course** | `banner` | - | Path to a banner image located in the same folder (Page Bundle). |
190+
184191

185192
> For a complete list of all predefined variables and advanced usage, please refer to the official [Hugo Front Matter documentation](https://gohugo.io/content-management/front-matter/).
186193

0 commit comments

Comments
 (0)