-
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 all commits
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 |
|---|---|---|
| @@ -1,13 +1,32 @@ | ||
| --- | ||
| title: Academy | ||
| title: Academy | ||
| --- | ||
|
|
||
| <!-- this page is only used in local dev setup , this wont be used or rendered in production --> | ||
|
|
||
| {{% blocks/lead color="primary" %}} | ||
| - [Learning Paths](https://cloud.layer5.io/academy/learning-paths) | ||
| - [Challenges](https://cloud.layer5.io/academy/challenges) | ||
| - [Certifications](https://cloud.layer5.io/academy/certifications) | ||
|
|
||
| Welcome to the dev environment for your Academy | ||
| --- | ||
|
|
||
| ### Welcome to dev environment for your Academy | ||
|
|
||
| This is just a development page that shows during the build process. The development process is extraordinarily simple - you can start building it out bit by bit or dive right in. | ||
|
|
||
| #### What Your Academy Will Look Like | ||
|
|
||
| When published, your Academy will look like ([https://cloud.layer5.io/academy/](https://cloud.layer5.io/academy/) and will feature **Learning Paths, Challenges, and Certifications** that are not set to `draft: true` in their front matter.) | ||
|
|
||
| It provides structured, Markdown-authored curricula with hands-on practice and assessments. Content is organized hierarchically and supports rich media. | ||
|
|
||
| #### Build Process | ||
|
|
||
| Here's the simple workflow: | ||
| > 1. **Develop locally** - Make your changes and test them here | ||
|
|
||
| > 2. **Merge when ready** - Your Academy stays private until you decide to publish | ||
|
|
||
| [Learning Paths](/academy/learning-paths/) | ||
| > 3. **Publish when ready** - Release it to your organization | ||
|
|
||
| {{% /blocks/lead %}} | ||
| **Need help?** [Documentation](https://github.com/layer5io/layer5-academy/blob/master/README.md) | [Contact Us](https://mesheryio.slack.com/ssb/redirect) |
| 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/).