From c25c48cc6973e13750982dda5b3d1567b983c113 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Sat, 23 Sep 2023 10:28:33 +0200 Subject: [PATCH] menu: showcase headless page feature #642 --- .../children-1-1/children-1-1-2/_index.en.md | 10 +++++++--- .../children-1-1/children-1-1-2/_index.pir.md | 6 ++++-- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/exampleSite/content/shortcodes/children/children-1/children-1-1/children-1-1-2/_index.en.md b/exampleSite/content/shortcodes/children/children-1/children-1-1/children-1-1-2/_index.en.md index 85adae8fb7..2ea31286f0 100644 --- a/exampleSite/content/shortcodes/children/children-1/children-1-1/children-1-1-2/_index.en.md +++ b/exampleSite/content/shortcodes/children/children-1/children-1-1/children-1-1-2/_index.en.md @@ -1,10 +1,14 @@ +++ description = "This is a demo child page" -tags = ["children", "non-hidden"] -title = "page 1-1-2" +tags = ["children", "headless", "non-hidden"] +title = "page 1-1-2 (headless)" +[_build] + render = "never" +++ -This is a plain demo child page. +This is a headless child page. + +While the heading is displayed in the theme for hierarchical views like the menu, the `children` shortcode, the chapter print feature and the breadcrumbs, its content will never be displayed and will not be accessible by search. Also its terms will not appear on the taxonomy pages. ## Subpages of this page diff --git a/exampleSite/content/shortcodes/children/children-1/children-1-1/children-1-1-2/_index.pir.md b/exampleSite/content/shortcodes/children/children-1/children-1-1/children-1-1-2/_index.pir.md index 37c4e0554e..dd9decfada 100644 --- a/exampleSite/content/shortcodes/children/children-1/children-1-1/children-1-1-2/_index.pir.md +++ b/exampleSite/content/shortcodes/children/children-1/children-1-1/children-1-1-2/_index.pir.md @@ -1,6 +1,8 @@ +++ descrption = "This be a demo child plank" -tags = ["children", "non-hidden"] -title = "plank 1-1-2" +tags = ["children", "headless", "non-hidden"] +title = "plank 1-1-2 (headless)" +[_build] + render = "never" +++ {{< piratify >}} \ No newline at end of file