Skip to content

Commit fd931aa

Browse files
Merge pull request #376 from layer5io/examples
Fix: hextra include-snippet
2 parents 3e0c043 + a866c5a commit fd931aa

File tree

2 files changed

+14
-2
lines changed
  • content/content-formatting-examples/hextra
  • static/examples/include-snippet

2 files changed

+14
-2
lines changed

content/content-formatting-examples/hextra/include.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ draft: true
99
Includes the rendered content of another page inline. This shortcode **must** use the percent-delimiter syntax.
1010

1111
```text
12-
{{%/* hextra/include "include-snippet" */%}}
12+
{{%/* hextra/include "examples/include-snippet" */%}}
1313
```
1414

1515
**Parameters:**
@@ -20,4 +20,4 @@ Includes the rendered content of another page inline. This shortcode **must** us
2020

2121
**Example (included from a separate page):**
2222

23-
{{% hextra/include "include-snippet" %}}
23+
{{% hextra/include "examples/include-snippet" %}}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
title: Includeable Snippet
3+
draft: true
4+
build:
5+
list: never
6+
render: always
7+
---
8+
9+
This paragraph was pulled in from a separate page using the `hextra/include` shortcode. It demonstrates how you can compose content from multiple sources into a single page.
10+
11+
- Included content supports **full Markdown** formatting.
12+
- Lists, `code`, and _emphasis_ all render correctly.

0 commit comments

Comments
 (0)