.Kind (section): .Type (posts) / .Layout ()
Bundle: branch
[ categories | tags | search ]
ox-hugo Test Site

This is the test site for the ox-hugo package for Emacs/Org-mode.

It is updated automatically after each commit to the ox-hugo repo. It was last updated on Mar 05, 2024 19:24 UTC.


This page was created/modified in commit eaadde8 "Improve tests added in https://github.com/kaushalmodi/ox-hugo/pull/523" on 2022-01-13.
Markdown source of this page

_build Front-matter

Posts in ‘posts/build-front-matter/’

Content

ox-hugo Issue #358 | _build page params

"do-not-list"

Page Metadata

Page VariableValue
Name "_build: Don't list this page"
Title "_build: Don't list this page"
ResourceType "page"
Kind "page"
Section "posts"
Draft false
Type "posts"
Layout ""
Permalink "https://ox-hugo.scripter.co/test/posts/build-front-matter/do-not-list/"
RelPermalink "/posts/build-front-matter/do-not-list/"
Data
page.Data{} (type:page.Data)
NextPageNone
PrevPageNone
NextInSectionNone
PrevInSectionNone

Page Params

KeyTypeValue
_buildmaps.Params
KeyTypeValue
liststring "never"
descriptionstring "Build this page but don't list it in _list_ pages."
draftbool false
iscjklanguagebool false
lastmodtime.Time 2022-01-13 09:14:37 -0500 -0500
tags[]string "front-matter" "page-bundles" "_build" "dont-list"
titlestring "_build: Don't list this page"

Page Content

_build.list option

This is the “do not list” page.

See the parent list page – This page is found using the .GetPage method there, but it won’t be listed there under “Posts in ‘posts/build-front-matter/’”.

"do-not-render"

Page Metadata

Page VariableValue
Name "_build: Don't render this page"
Title "_build: Don't render this page"
ResourceType "page"
Kind "page"
Section "posts"
Draft false
Type "posts"
Layout ""
Permalink ""
RelPermalink ""
Data
page.Data{} (type:page.Data)
NextPage Setting EXPORT_HUGO_SECTION to "/"
PrevPage2020-04-19
NextInSectionNone
PrevInSectionNone

Page Params

KeyTypeValue
_buildmaps.Params
KeyTypeValue
renderstring "never"
descriptionstring "Do not render this page, but.. still list it."
draftbool false
iscjklanguagebool false
lastmodtime.Time 2022-01-27 10:24:14 -0500 -0500
tags[]string "front-matter" "page-bundles" "_build" "dont-render"
titlestring "_build: Don't render this page"

Page Content

_build.render option

This is the “do not render” page.

See the parent list page – This page is not rendered, but its content and metadata can be found using the site.GetPage method.

This page is listed on that parent list page, but the link won’t lead to this page as.. it did not get rendered. That link will point to that page itself because with render set to false or "never", the .Permalink and .RelPermalink get set to "".

"do-not-render-or-list"

Page Metadata

Page VariableValue
Name "_build: Don't render or list this page"
Title "_build: Don't render or list this page"
ResourceType "page"
Kind "page"
Section "posts"
Draft false
Type "posts"
Layout ""
Permalink ""
RelPermalink ""
Data
page.Data{} (type:page.Data)
NextPageNone
PrevPageNone
NextInSectionNone
PrevInSectionNone

Page Params

KeyTypeValue
_buildmaps.Params
KeyTypeValue
listbool false
renderbool false
descriptionstring "Do not render or list this page."
draftbool false
iscjklanguagebool false
lastmodtime.Time 2022-01-13 09:14:37 -0500 -0500
tags[]string "front-matter" "page-bundles" "_build" "dont-render" "dont-list" "headless"
titlestring "_build: Don't render or list this page"

Page Content

This is the “do not render or list” page.

See the parent list page – This page is not rendered, but its content and metadata can be found using the site.GetPage method.

Setting both render and list to false or "never" makes this page behave like a headless page bundle – ref.


Page (Debug)

Page VariableValue
Name "_build Front-matter"
Title "_build Front-matter"
ResourceType "page"
Kind "section"
Section "posts"
Draft false
Type "posts"
Layout ""
Permalink "https://ox-hugo.scripter.co/test/posts/build-front-matter/"
RelPermalink "/posts/build-front-matter/"
Data
page.Data{"pages":(func() page.Pages)(0x15eea00)} (type:page.Data)
NextPageNone
PrevPageNone
NextInSectionNone
PrevInSectionNone

Page Params (Debug)

KeyTypeValue
draftbool false
iscjklanguagebool false
lastmodtime.Time 2022-01-13 09:14:37 -0500 -0500
tags[]string "front-matter" "page-bundles" "_build"
titlestring "_build Front-matter"

File Object (Debug)

FileInfo VariableValue
UniqueID "ea1c659b653f4325ac8adc3b124bd5e7"
BaseFileName "_index"
TranslationBaseName "_index"
Lang "en"
Section "posts"
LogicalName "_index.md"
Dir "posts/build-front-matter/"
Ext "md"
Path "posts/build-front-matter/_index.md"

This site is generated using the ox-hugo package for Emacs/Org-mode + hugo-bare-min-theme + Hugo 0.101.0 (commit 466fa43c16709b4483689930a4f9ac8add5c9f66) . This site is powered by Netlify.
[Test Site home | ox-hugo home]