Skip to content

Commit

Permalink
No Print
Browse files Browse the repository at this point in the history
  • Loading branch information
russfeld committed Jul 8, 2022
1 parent 4a9e544 commit 2c980ec
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
10 changes: 10 additions & 0 deletions content/1-structures/04-no-print/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
title: "No Print Branch"
pre: "4. "
weight: 40
noprint: true
---

This is a [branch bundle](https://gohugo.io/content-management/page-bundles/). It is a folder with a file named `_index.md` including the underscore. Other files under this folder are rendered like any other content folder.

However, this bundle has `noprint: true` in the frontmatter, so it should be omitted from the print output.
9 changes: 9 additions & 0 deletions content/1-structures/04-no-print/render.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
title: "Rendered"
pre: "3.1 "
weight: 20
---

This page is included in the output since it is a branch bundle.

It should not be printed in the print output.
2 changes: 1 addition & 1 deletion themes/hugo-theme-relearn

0 comments on commit 2c980ec

Please sign in to comment.