Skip to content

Commit 885a7f3

Browse files
committed
org-id
Signed-off-by: YASHMAHAKAL <yvsst01@gmail.com>
1 parent 0e0d584 commit 885a7f3

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

  • content/content-formatting-examples/academy-theme
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
title: Org ID
3+
linkTitle: Org ID
4+
weight: 9
5+
description: Academy theme org-id shortcode for rendering the organization UUID.
6+
draft: true
7+
---
8+
9+
The `org-id` shortcode renders the organization UUID extracted from the current page's content path.
10+
11+
Academy content is organized as `<type>/<orgID>/...` (relative to the content directory) where `<orgID>` is a UUID at path segment index 1. When the page is within such a structure, the shortcode outputs the UUID inline as a `<code>` element.
12+
13+
```text
14+
{{</* org-id */>}}
15+
```
16+
17+
**Example:**
18+
19+
{{< org-id >}}
20+
21+
> **Note:** This demo page is not under a UUID-named directory, so the shortcode renders the fallback text. When used within a `content/learning-paths/<uuid>/...` path, it will output the organization's UUID.

0 commit comments

Comments
 (0)