Skip to content
Snippets Groups Projects
Unverified Commit 3822d1f2 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Fix external links in further

parent f6313683
No related branches found
No related tags found
No related merge requests found
...@@ -2,10 +2,15 @@ ...@@ -2,10 +2,15 @@
<h2>{{title|default(value="Weiteres zu diesem Thema")}}</h2> <h2>{{title|default(value="Weiteres zu diesem Thema")}}</h2>
<div class="columns is-multiline is-same-height"> <div class="columns is-multiline is-same-height">
{% for further in page.extra.further[category] %} {% for further in page.extra.further[category] %}
{% if further.link is matching("^[^:/]+://") -%}
{% set link = further.link -%}
{% else -%}
{% set link = get_url(path=further.link) -%}
{% endif -%}
<div class="column is-one-third"> <div class="column is-one-third">
<div class="card"> <div class="card">
<div class="card-image"> <div class="card-image">
<a href="{{ get_url(path=further.link)}}"> <a href="{{ link }}">
<figure class="image is-4by3"> <figure class="image is-4by3">
{% set image = resize_image(path="@/" ~ page.colocated_path ~ "/" ~ further.image, width=800, height=600) -%} {% set image = resize_image(path="@/" ~ page.colocated_path ~ "/" ~ further.image, width=800, height=600) -%}
<img src="{{image.url}}" alt="{{further.alt}}" /> <img src="{{image.url}}" alt="{{further.alt}}" />
...@@ -16,7 +21,7 @@ ...@@ -16,7 +21,7 @@
</a> </a>
</div> </div>
<div class="card-content"> <div class="card-content">
<p class="title"><a href="{{get_url(path=further.link)}}">{{further.title}}</a></p> <p class="title"><a href="{{ link }}">{{further.title}}</a></p>
<p class="content"> <p class="content">
{{further.description}} {{further.description}}
</p> </p>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment