layout

 

layout creates documentation of a Jekyll layout.

Layouts are like rendering functions that turn page variables and content data into specific HTML.

This page is an example of layout in use, documenting itself (source).

See the usage section below for an illustration of how to invoke this layout in a documentation file.

Usage

---
layout: "layout"

description: string
parameters: [ variable_info, .. ]
parent_layout: [ string, .. ]
title: string
---
<content>

Parameters

descriptionpurpose of layout. the first line will rendered as larger text. Because it is singled out, any links in the first line must use the inline style
parameters
optional
 list of supported page variables. use the following yaml format for each:
variable_info:
  attributes: [ string ]
  type: string
  optional: boolean
  description: string (markdown supported; links must use inline style)
parent_layout
optional
 chain of layouts this layout inherits from, ordered with parent first, then grandparent, great grandparent, and so on.
titlefilename of layout, without extension
programming pages 2020 pixeldroid
https://github.com/pixeldroid/programming-pages
programming pages theme v0.5.22 (https://github.com/pixeldroid/programming-pages)