Better links

Signed-off-by: Alexander Borsuk <me@alex.bio>
This commit is contained in:
Alexander Borsuk 2023-06-29 08:19:06 +02:00
parent 1f37326cd5
commit 530d000b05
3 changed files with 7 additions and 7 deletions

View file

@ -23,7 +23,7 @@
{% if translatedPage %}
{% set page = get_page(path=translatedPage.path) %}
{% endif %}
<div class="news_date">&nbsp;<a href="{{ page.path }}">{{ page.date | date(format='%B %e, %Y') }}</a>&nbsp;</div>
<div class="news_date">&nbsp;<a href="{{ page.path | safe }}">{{ page.date | date(format='%B %e, %Y') }}</a>&nbsp;</div>
{# Display wide images below the text instead of to the right. #}
{% set_global noflex = '' %}
{% for photo in page.assets %}
@ -40,7 +40,7 @@
<span class="news_images">
{% for photo in page.assets | sort %}
<img class="news_image" src="{{ page.path }}/{{ photo | split(pat='/') | last }}" />
<img class="news_image" src="{{ page.path | safe }}{{ photo | split(pat='/') | last }}" />
{% endfor %}
</span>

View file

@ -9,7 +9,7 @@
</div>
{% for photo in resource.assets | sort %}
<img class="news_image" src="{{ resource.path }}/{{ photo | split(pat='/') | last }}" />
<img class="news_image" src="{{ resource.path | safe }}{{ photo | split(pat='/') | last }}" />
{% endfor %}
<div class="back_to_news">

View file

@ -9,14 +9,14 @@
{% set translatedPage = page.translations | filter(attribute='lang', value=lang) | first %}
{% if translatedPage %}
{% set page = get_page(path=translatedPage.path) %}
{% endif %}
<div class="news_date">&nbsp;<a href="{{ page.path }}">{{ page.date | date(format='%B %e, %Y') }}</a>&nbsp;</div>
{% endif %}
<div class="news_date">&nbsp;<a href="{{ page.path | safe }}">{{ page.date | date(format='%B %e, %Y') }}</a>&nbsp;</div>
<div class="news_content_image">
{% if page.content %}
<div class="news_content">{{ page.content | safe }}</div>
{% endif %}
{% endif %}
{% for photo in page.assets %}
<img class="news_image" src="{{ page.path }}/{{ photo | split(pat='/') | last }}" />
<img class="news_image" src="{{ page.path | safe }}{{ photo | split(pat='/') | last }}" />
{% endfor %}
</div>
{% endfor %}