Documentation ¶
Index ¶
Constants ¶
View Source
const ( Never = "never" Always = "always" ListLocally = "local" Link = "link" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildConfig ¶
type BuildConfig struct { // Whether to add it to any of the page collections. // Note that the page can always be found with .Site.GetPage. // Valid values: never, always, local. // Setting it to 'local' means they will be available via the local // page collections, e.g. $section.Pages. // Note: before 0.57.2 this was a bool, so we accept those too. List string // Whether to render it. // Valid values: never, always, link. // The value link means it will not be rendered, but it will get a RelPermalink/Permalink. // Note that before 0.76.0 this was a bool, so we accept those too. Render string // contains filtered or unexported fields }
BuildConfig holds configuration options about how to handle a Page in Hugo's build process.
func DecodeBuildConfig ¶
func DecodeBuildConfig(m any) (BuildConfig, error)
func (*BuildConfig) Disable ¶
func (b *BuildConfig) Disable()
Disable sets all options to their off value.
func (BuildConfig) IsZero ¶
func (b BuildConfig) IsZero() bool
Click to show internal directories.
Click to hide internal directories.