From 70ce6ae33ea748b13081ba0ab272c4e4744c0892 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Tue, 6 Oct 2020 11:19:31 +0200 Subject: [PATCH] pagemeta: Make BuildConfig.Render an enum Allowing links on pages without rendering them. Fixes #7783 --- content/en/content-management/build-options.md | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/content/en/content-management/build-options.md b/content/en/content-management/build-options.md index b01568d39..93da7c421 100644 --- a/content/en/content-management/build-options.md +++ b/content/en/content-management/build-options.md @@ -20,13 +20,24 @@ They are stored in a reserved Front Matter object named `_build` with the follow ```yaml _build: - render: true + render: always list: always publishResources: true ``` #### render -If true, the page will be treated as a published page, holding its dedicated output files (`index.html`, etc...) and permalink. +If `always`, the page will be treated as a published page, holding its dedicated output files (`index.html`, etc...) and permalink. + +{{< new-in "0.76.0" >}} We extended this property from a boolean to an enum in Hugo 0.76.0. Valid values are: + +never +: The page will not be included in any page collection. + +always (default) +: The page will be rendered to disk and get a `RelPermalink` etc. + +link +: The page will be not be rendered to disk, but will get a `RelPermalink`. #### list