diff --git a/templates/shortcodes/further.html b/templates/shortcodes/further.html index 238c8863a75fbeb732528fbc476a784ba16486d5..205c134c8f80edb9d8e41332398bda4b6b638909 100644 --- a/templates/shortcodes/further.html +++ b/templates/shortcodes/further.html @@ -2,10 +2,15 @@ <h2>{{title|default(value="Weiteres zu diesem Thema")}}</h2> <div class="columns is-multiline is-same-height"> {% 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="card"> <div class="card-image"> - <a href="{{ get_url(path=further.link)}}"> + <a href="{{ link }}"> <figure class="image is-4by3"> {% set image = resize_image(path="@/" ~ page.colocated_path ~ "/" ~ further.image, width=800, height=600) -%} <img src="{{image.url}}" alt="{{further.alt}}" /> @@ -16,7 +21,7 @@ </a> </div> <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"> {{further.description}} </p>