aboutsummaryrefslogtreecommitdiff
path: root/theme/custom/applications.html
diff options
context:
space:
mode:
authorSébastien Dailly <sebastien@dailly.me>2022-02-01 18:35:47 +0100
committerSébastien Dailly <sebastien@dailly.me>2022-02-01 18:38:02 +0100
commit0323bbd5b929b55c4031974b43559ce773440723 (patch)
tree19fcf66d1e3e9a6c55a7d4a13688a3797c0c5c30 /theme/custom/applications.html
parent92f04c836f4d0cd367428532f64fd82f9874b07c (diff)
Custom template for applications page
Diffstat (limited to 'theme/custom/applications.html')
-rw-r--r--theme/custom/applications.html22
1 files changed, 22 insertions, 0 deletions
diff --git a/theme/custom/applications.html b/theme/custom/applications.html
new file mode 100644
index 0000000..eb0124b
--- /dev/null
+++ b/theme/custom/applications.html
@@ -0,0 +1,22 @@
+{% extends "page.html" %}
+
+{% block after_content %}
+{% for page in hidden_pages|selectattr("date")|sort(reverse=true,attribute="date") %}
+{% for tag in page.tags if "application" == tag.name %}
+ <h2><a href="{{ SITEURL }}/{{ page.url }}{% if not DISABLE_URL_HASH %}#{{ page.slug }}{% endif %}">{{ page.title }}</a></h2>
+ <div>
+ {% if summarise or page.metadata['summary'] or SUMMARY_MAX_LENGTH %}
+ {% if page.featured_image %}
+ <img src="{{ page.featured_image }}">
+ {% endif %}
+ {{ page.summary }}
+ {% endif %}
+ </div>
+{% endfor %}
+ {% if not loop.last %}
+ <hr />
+ {% endif %}
+{% endfor %}
+{{ super() }}
+
+{% endblock %}