Meta

Display a list of meta-like data. Useful in article and diary posts.

Open this example in a new tab
View the code for this example
{% from 'includes/meta.njk' import meta as meta %}
{% from 'includes/subjects.njk' import subjects as subjects %}

{{ meta({
  items: [
    {
      key: 'Date',
      value: '19 April 2023'
    },
    {
      key: 'Subjects',
      value: subjects(['cheese','crackers'])
    }
  ]
}) }}

Note: You should use the subjects component (as show in the example) to render a list of subjects.

Nunjucks Macro parameters

Name Type Description
items array An array of items to add to the meta component.
item.key string The name or “key” of the item.
cover.value HTML The value of the item.