.Kind (page): .Type (posts) / .Layout ()
Bundle: n/a (regular page)
[ categories | projects | tags | search ]
Hugo Sandbox

This is an unofficial Hugo sandbox site to try to replicate possible bugs in hugo.

It is updated automatically after each commit to the hugo-sandbox repo. It was last updated on Oct 09, 2018 14:48 UTC.


This page was created/modified in commit bca6c8d "Add temp post" on 2018-08-07.
Markdown source of this page

Pages vs Site Pages

categories: miscellaneous


Description/Summary

Variable Current context Pages included .Site.Pages any ALL pages of the site: content, sections, taxonomies, etc. – Superset of everything! .Site.RegularPages any Only regular (content) pages – Subset of .Site.Pages .Pages List page Regular pages under that list page representing the homepage, section, taxonomy term (/tags) or taxonomy (/tags/foo) page – Subset of .Site.Pages or .Site.RegularPages, depending on context. .


Content

Variable Current context Pages included
.Site.Pages any ALL pages of the site: content, sections, taxonomies, etc. – Superset of everything!
.Site.RegularPages any Only regular (content) pages – Subset of .Site.Pages
.Pages List page Regular pages under that list page representing the homepage, section, taxonomy term (/tags) or taxonomy (/tags/foo) page – Subset of .Site.Pages or .Site.RegularPages, depending on context.
.Pages Single page empty slice

In the home context (index.html), .Pages is the same as .Site.RegularPages.

Note
.Pages is an alias to .Data.Pages. It is conventional to use that alias form.

Page (Debug)

Page VariableValue
Name "Pages vs Site Pages"
Title "Pages vs Site Pages"
ResourceType "page"
Kind "page"
Section "posts"
Draft false
Type "posts"
Layout ""
Permalink "https://hugo-sandbox.netlify.com/posts/pages-vs-site-pages/"
RelPermalink "/posts/pages-vs-site-pages/"
RSSLink ""
Data
KeyTypeValue
Pageshugolib.Pages
NextPagePage witting gossiping
PrevPagePost 1
NextInSectionPage witting gossiping
PrevInSectionPost 2

Page Params (Debug)

KeyTypeValue
author[]string "Kaushal Modi"
categories[]string "miscellaneous"
creatorstring "Emacs 27.0.50 (Org mode 9.1.13 + ox-hugo)"
draftbool false
iscjklanguagebool false
lastmodtime.Time 2018-08-07 09:40:41 -0400 -0400
titlestring "Pages vs Site Pages"

File Object (Debug)

FileInfo VariableValue
UniqueID "23f86106623db2e5728a191e7f5196e1"
BaseFileName "pages-vs-site-pages"
TranslationBaseName "pages-vs-site-pages"
Lang "en"
Section "posts"
LogicalName "pages-vs-site-pages.md"
Dir "posts/"
Ext "md"
Path "posts/pages-vs-site-pages.md"

This site is generated using the ox-hugo package for Emacs/Org-mode + hugo-bare-min-theme + Hugo 0.50-DEV (commit d5d50e2f, using Chroma commit d5ca12b) .

[Back to Hugo Sandbox home]