{% component taxonomy_links(terms: array, kind: string) -%} {%- for term in terms -%} {%- if not loop.first %}, {% endif -%} {% set term_label = term | replace(from="-", to=" ") if kind != "lectures" else term %} {{ term_label }} {%- endfor -%} {%- endcomponent taxonomy_links %} {% component taxonomy_panel(kind: string, heading_id: string, title: string, description: string, link_label: string) %} {% set taxonomy = get_taxonomy(kind=kind, required=false) %} {% if taxonomy and taxonomy.items %} {% endif %} {% endcomponent taxonomy_panel %} {% component metadata_field(extra, key: string, label: string, lang: string = "") -%} {%- set value = extra | get(key=key, default="") -%} {%- if value -%}
{{ label }}
{{ value }} {%- endif -%} {%- endcomponent metadata_field %} {% component metadata_list(extra, key: string, label: string, lang: string = "") -%} {%- set values = extra | get(key=key, default=[]) -%} {%- if values -%}
{{ label }}
{%- for value in values -%} {%- if not loop.first %}, {% endif -%} {{- value -}} {%- endfor -%} {%- endif -%} {%- endcomponent metadata_list %} {% component sign_entry(page, show_readings: bool = true) %}
  • {{ page.title }}
    MZL {{ page.extra.mzl }} {% if show_readings and page.taxonomies.lectures %} · {{}} {% endif %}
  • {% endcomponent sign_entry %} {% component word_entry(page, show_nature: bool = true) %}
  • {{ page.title }} {% if page.extra.meaning %} — {{ page.extra.meaning }}{% endif %} {% if show_nature or page.extra.gender %}
    {% if show_nature %} {{}} {% endif %} {% if show_nature and page.extra.gender %} · {% endif %} {% if page.extra.gender %}{{ page.extra.gender }}{% endif %}
    {% endif %}
  • {% endcomponent word_entry %} {% component document_entry(page, taxonomy_kind: string = "", show_date: bool = false) %}
  • {{ page.title }} {% if show_date or page.description or taxonomy_kind %}
    {% if show_date and page.date %} {% endif %} {% if show_date and page.date and page.description %} — {% endif %} {% if page.description %}{{ page.description }}{% endif %} {% if taxonomy_kind %} {% set terms = page.taxonomies | get(key=taxonomy_kind, default=[]) %} {% if terms %} {% if (show_date and page.date) or page.description %}
    {% endif %} {{}} {% endif %} {% endif %}
    {% endif %}
  • {% endcomponent document_entry %}