Skip to main

Section Macros

content/_includes/layout.macros.njk

For sectioning content in posts


Macros

title()

Section titles are flag-like

Params:

  • content {markdown}
  • align {right | left | center [none]} = right

    The macro defaults to right, but the CSS defaults to a centered layout if no valid alignment is given.

grid()

Create an auto-fit or auto-fill grid for child elements

Params:

  • name {string} = fit
  • content {string | none} = none

    Expects caller() if no value is given

  • attrs

block()

Create a generic container for grouping elements

Params:

  • name {string} = group
  • content {string | none} = none

    Expects caller() if no value is given

  • attrs

See Also: