Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions content/content-formatting-examples/hextra/include.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ draft: true
Includes the rendered content of another page inline. This shortcode **must** use the percent-delimiter syntax.

```text
{{%/* hextra/include "examples/include-snippet" */%}}
{{%/* hextra/include "include-snippet" */%}}
```
Comment on lines 11 to 13
Copy link

Copilot AI Apr 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The referenced include target include-snippet does not appear to exist as a Hugo content page in this repository (there’s no content/**/include-snippet*). The only matching file is static/examples/include-snippet/index.md, which Hugo won’t treat as a page. If hextra/include uses .Site.GetPage/.Page.GetPage, this example will fail to resolve unless the snippet is moved/added under content/ (or the shortcode is documented as reading from static/).

Copilot uses AI. Check for mistakes.

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

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

{{% hextra/include "examples/include-snippet" %}}
{{% hextra/include "include-snippet" %}}
Copy link

Copilot AI Apr 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This live shortcode invocation will try to include include-snippet at build time. In the current tree there isn’t a corresponding content page, so rendering this page (e.g., with --buildDrafts) is likely to error. Consider adding the snippet under content/ (e.g., content/.../include-snippet/index.md) or updating the parameter/path to the actual resolvable location.

Suggested change
{{% hextra/include "include-snippet" %}}
{{%/* hextra/include "include-snippet" */%}}

Copilot uses AI. Check for mistakes.
Loading