add murph_url filter

This commit is contained in:
Simon Vieille 2021-05-29 13:02:12 +02:00
parent c1d3ed43f4
commit 7376bbaeb6
5 changed files with 9 additions and 9 deletions

View file

@ -14,7 +14,7 @@
{% set url = post.quickUrl %} {% set url = post.quickUrl %}
{% set title = post.title %} {% 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 %} {% if false and post.quickVideo and post.quickVideoHeight and post.quickVideoWidth %}
<div class="quick-video"> <div class="quick-video">
@ -42,11 +42,11 @@
</p> </p>
{% if post.contentFormat == 'html' %} {% if post.contentFormat == 'html' %}
{{- post.content|post -}} {{- post.content|murph_url|post -}}
{% endif %} {% endif %}
{% if post.contentFormat == 'markdown' %} {% if post.contentFormat == 'markdown' %}
{{- post.content|markdown('post') -}} {{- post.content|murph_url|markdown('post') -}}
{% endif %} {% endif %}
{% if not full %} {% if not full %}
@ -92,11 +92,11 @@
<div class="body-content"> <div class="body-content">
{% if post.contentFormat == 'html' %} {% if post.contentFormat == 'html' %}
{{- post.content|post -}} {{- post.content|murph_url|post -}}
{% endif %} {% endif %}
{% if post.contentFormat == 'markdown' %} {% if post.contentFormat == 'markdown' %}
{{- post.content|markdown('post')|lazy_load -}} {{- post.content|murph_url|markdown('post')|lazy_load -}}
{% endif %} {% endif %}
</div> </div>
{% endif %} {% endif %}

View file

@ -14,7 +14,7 @@
<div class="col-12"> <div class="col-12">
<div class="body"> <div class="body">
<div class="body-content"> <div class="body-content">
{{- _page.content.value|markdown('post') -}} {{- _page.content.value|murph_url|markdown('post') -}}
</div> </div>
</div> </div>
</div> </div>

View file

@ -24,7 +24,7 @@
<div class="col-12"> <div class="col-12">
<div class="body"> <div class="body">
<div class="body-content"> <div class="body-content">
{{- _page.content.value|markdown('post') -}} {{- _page.content.value|murph_url|markdown('post') -}}
<p> <p>
<a target="_blank" title="RSS" href="{{ safe_path(_node.routeName ~ '_rss') }}"> <a target="_blank" title="RSS" href="{{ safe_path(_node.routeName ~ '_rss') }}">

View file

@ -14,7 +14,7 @@
<div class="col-12"> <div class="col-12">
<div class="body"> <div class="body">
<div class="body-content"> <div class="body-content">
{{- _page.content.value|markdown('post') -}} {{- _page.content.value|murph_url|markdown('post') -}}
</div> </div>
</div> </div>
</div> </div>

View file

@ -1 +1 @@
{{ _page.content.value|raw }} {{ _page.content.value|murph_url|raw }}