Please note that this version of the site is no longer being updated. All content has been merged with my IT Blog "Much Ado About IT". Click here to see this page on the other site. I've found that using Jekyll to be too fragile and complex. GitHub pages are too limited. The blog site was on WordPress (self-hosted) but that was too slow and clunky. The revamped blog now uses Hugo and is published using Netlify
A Test Jekyll/GitHub Collection Document (HTML)
Testing collections and page variables - this page is in a collection and is an HTML file
This is a JEKYLL PAGE
Here are the main page variables/metadata available in Jekyll on GitHub Pages:
- page.collection (collection documents only)
- --NOT AVAILABLE--
The name of the current collection if this is a collection document. - page.comments
- test
Custom metadata, set in_config.yml
defaults but set to "test" in the frontmatter for this page. NB: value of false triggers the default N/A msg - page.content
- <h1>This is a {% if page.collection %}COLLECTION DOCUMENT{% else %}JEKYLL...
The unrendered content for the document. - page.date
- 2018-01-02 17:11:11 +0000
Custom metadata, set in the frontmatter for the page though docs indicate this should be created automatically - page.description
- Testing collections and page variables - this page is in a collection and is an HTML file
Custom metadata, set in the frontmatter for the page. Commonly used in templates. - page.dir (actual Jekyll Pages only)
- /ghjekyll/
The name of the folder containing the Page. With leading/trailing slashes. - page.draft (collection documents and Posts only)
- --NOT AVAILABLE--
Whether the document/post is in draft (unpublished). - page.excerpt (collection documents and Posts only?)
- --NOT AVAILABLE--
The unrendered excerpt of the document/post. Excerpts are generated from the top of the page (after the frontmatter) until the firstexcerpt_separator
(a blank line by default). - page.excerpt_separator (collection documents and Posts only?)
- --NOT AVAILABLE--
The trigger for the end of a generated excerpt (a blank line by default). May be set in the frontmatter. - page.ext (collection documents and Posts only?)
- --NOT AVAILABLE--
The extension of the document/post. With leading dot. - page.id (collection documents and Posts only)
- --NOT AVAILABLE--
The document/post ID. For a collection document, the format is/[collectionName]/[pageSlug]
- page.layout
- page
The layout name for the page. Typically one of default, page, post, home. Must match the name of a layout file in the_layouts
folder. e.g.home.html
- page.name (actual Jekyll Pages only)
- test3.html
The name of the Page (with original extension, e.g.test2.md
) - page.output
- <span class='na'>--NOT AVAILABLE--</span>
The rendered version of the page (e.g. all Jekyll markup replaced). - page.path
- ghjekyll/test3.html
The path to the original (unrendered) file. Without leading slash (e.g.nr-qa/test2.md
) - page.relative_path (collection documents and Posts only)
- --NOT AVAILABLE--
The path to the original (unrendered) file. Without leading slash (e.g.nr-qa/test2.md
) - page.slug (collection documents and Posts only)
- --NOT AVAILABLE--
- page.testFm
- testing front matter variables
Custom metadata, set in the frontmatter for this page. - page.title
- A Test Jekyll/GitHub Collection Document (HTML)
Custom metadata, set in the frontmatter for the page. Commonly used in templates to provide the HTML title and often an H1 tag at the top of the page content. - page.url
- /ghjekyll/test3.html
The absolute URL for rendered version of the document. With leading slash, e.g./nr-qa/test2.html