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 title = post.title %}
{% set content = post.content %}
{% set content = post.content|murph_url %}
{% if false and post.quickVideo and post.quickVideoHeight and post.quickVideoWidth %}
<div class="quick-video">
@ -42,11 +42,11 @@
</p>
{% 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 @@
<div class="body-content">
{% 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 %}
</div>
{% endif %}

View file

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

View file

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

View file

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

View file

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