-
Notifications
You must be signed in to change notification settings - Fork 44
fix hextra include-snippet example #377
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -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" */%}} | ||||||
| ``` | ||||||
|
|
||||||
| **Parameters:** | ||||||
|
|
@@ -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" %}} | ||||||
|
||||||
| {{% hextra/include "include-snippet" %}} | |
| {{%/* hextra/include "include-snippet" */%}} |
There was a problem hiding this comment.
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-snippetdoes not appear to exist as a Hugo content page in this repository (there’s nocontent/**/include-snippet*). The only matching file isstatic/examples/include-snippet/index.md, which Hugo won’t treat as a page. Ifhextra/includeuses.Site.GetPage/.Page.GetPage, this example will fail to resolve unless the snippet is moved/added undercontent/(or the shortcode is documented as reading fromstatic/).