From 7376bbaeb6067d52e7c5efe8dc10d92c9ecdf049 Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Sat, 29 May 2021 13:02:12 +0200 Subject: [PATCH] add murph_url filter --- templates/blog/post/_post.html.twig | 10 +++++----- templates/page/contact/default.html.twig | 2 +- templates/page/links/default.html.twig | 2 +- templates/page/simple/default.html.twig | 2 +- templates/page/text/default.txt.twig | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/templates/blog/post/_post.html.twig b/templates/blog/post/_post.html.twig index 2cfa91c..00e6a88 100644 --- a/templates/blog/post/_post.html.twig +++ b/templates/blog/post/_post.html.twig @@ -14,7 +14,7 @@ {% set url = post.quickUrl %} {% set title = post.title %} - {% set content = post.content %} + {% set content = post.content|murph_url %} {% if false and post.quickVideo and post.quickVideoHeight and post.quickVideoWidth %}
@@ -42,11 +42,11 @@

{% if post.contentFormat == 'html' %} - {{- post.content|post -}} + {{- post.content|murph_url|post -}} {% endif %} {% if post.contentFormat == 'markdown' %} - {{- post.content|markdown('post') -}} + {{- post.content|murph_url|markdown('post') -}} {% endif %} {% if not full %} @@ -92,11 +92,11 @@
{% if post.contentFormat == 'html' %} - {{- post.content|post -}} + {{- post.content|murph_url|post -}} {% endif %} {% if post.contentFormat == 'markdown' %} - {{- post.content|markdown('post')|lazy_load -}} + {{- post.content|murph_url|markdown('post')|lazy_load -}} {% endif %}
{% endif %} diff --git a/templates/page/contact/default.html.twig b/templates/page/contact/default.html.twig index 23e6419..fbaa959 100644 --- a/templates/page/contact/default.html.twig +++ b/templates/page/contact/default.html.twig @@ -14,7 +14,7 @@
- {{- _page.content.value|markdown('post') -}} + {{- _page.content.value|murph_url|markdown('post') -}}
diff --git a/templates/page/links/default.html.twig b/templates/page/links/default.html.twig index 0cc64fe..444c43f 100644 --- a/templates/page/links/default.html.twig +++ b/templates/page/links/default.html.twig @@ -24,7 +24,7 @@