All checks were successful
Deploy on webserver / Build site and deploy on success (push) Successful in 1m24s
The bulk of the changes are introducing jinja template nesting in order to be able to centralize and deduplicate common page aspects. There should be no significant changes in the output. Using the new common base template, URL/slug overrides are now supported. The presents of two annotations tags allows overrding the default URL/slug (that is taken from the filename). These tags are - `xyzrins:annotation-tags/psyinf-ns-id`: overrides `url` frontmatter - `xyzrins:annotation-tags/psyinf-ns-name`: overrides `slug` frontmatter This makes it possible to tune the location of a page on the site without having to alter the respective PID.
14 lines
302 B
Django/Jinja
14 lines
302 B
Django/Jinja
{% extends "page.md.j2" %}
|
|
{% block frontmatter -%}
|
|
title: "{{ display_label }}"
|
|
{% endblock -%}
|
|
|
|
{% block content -%}
|
|
{{ description }}
|
|
|
|
{% if part_of -%}Part of:
|
|
{% for item in part_of -%}
|
|
- [{{ item.display_label }}](/{{ item.pid.replace('xyzrins:', '') }})
|
|
{% endfor %}
|
|
{% endif -%}
|
|
{% endblock %}
|