diff --git a/source/_includes/notes/links.html.twig b/source/_includes/notes/links.html.twig new file mode 100644 index 000000000..374fd3dc7 --- /dev/null +++ b/source/_includes/notes/links.html.twig @@ -0,0 +1,9 @@ +{% if links is not empty %} +

Links

+ + +{% endif %} diff --git a/source/_includes/notes/related.html.twig b/source/_includes/notes/related.html.twig new file mode 100644 index 000000000..0caea6051 --- /dev/null +++ b/source/_includes/notes/related.html.twig @@ -0,0 +1,13 @@ +{% if related and notes %} +
+

Related

+ + +
+{% endif %} diff --git a/source/_includes/notes/tags.html.twig b/source/_includes/notes/tags.html.twig new file mode 100644 index 000000000..3cefffa5e --- /dev/null +++ b/source/_includes/notes/tags.html.twig @@ -0,0 +1,10 @@ +{% if tags is not empty %} +

Tags

+ + +{% endif %} + diff --git a/source/_layouts/note.html.twig b/source/_layouts/note.html.twig index dfac32b82..bf7ac5d79 100644 --- a/source/_layouts/note.html.twig +++ b/source/_layouts/note.html.twig @@ -13,37 +13,13 @@ {% block content %}{% endblock %} - {% if page.links is not empty %} -

Links

+ {% include "notes/links" with { links: page.links } %} - - {% endif %} + {% include "notes/related" with { + notes: data.notes, + related: page.related, + } %} - {% if page.tags is not empty %} -

Tags

+{% include "notes/tags" with { tags: page.tags } %} - - {% endif %} - - {% if page.related and data.notes %} -
-

Related

- - -
- {% endif %} {% endblock %}