Commit 442cb33c authored by Marvin Thäns's avatar Marvin Thäns
Browse files

detailed-topic include added

parent c7283ca4
Pipeline #21074 failed with stage
in 23 seconds
{% if include.external_url %}
{% assign url = include.external_url %}
{% elsif include.url %}
{% assign url = include.url | prepend: site.baseurl %}
{% endif %}
<div class="block {{ include.class }}">
{% if include.image %}
{% if include.imagedimension %}
{% assign dimension = include.imagedimension %}
{% else %}
{% assign dimension = "wide" %}
{% endif %}
{% if url %}
<a href="{{ url }}">
{% include image src=include.image dimension=dimension sizes="(min-width: 1180px) 500px, (min-width: 980px) 410px, (min-width: 740px) 50vw, 100vw" class=include.imageclass %}
</a>
{% else %}
{% include image src=include.image dimension=dimension sizes="(min-width: 1180px) 320px, (min-width: 980px) 260px, (min-width: 740px) 50vw, 100vw" class=include.imageclass %}
{% endif %}
{% endif %}
{% if include.assigned-to %}
<div class="author">
<p style="text-align:left;"> {{ include.assigned-to }} <span style="float:right;"><i>{{ include.type }}</i></span></p>
</div>
{% endif %}
{% if include.title %}
{% if url %}
<a href="{{ url }}" class="title">
{{ include.title }}
</a>
{% else %}
<div class="title">
{{ include.title }}
</div>
{% endif %}
{% endif %}
{% if include.teaser %}
<div class="text">
{{ include.teaser }}
</div>
{% endif %}
<div class="footer">
<div class="text">{{ include.meta }}</div>
{% if include.external_url %}
<a class="link" href="{{ include.external_url }}">
<i class="icon-right-open"></i>Go to website
</a>
{% elsif url %}
<a class="link" href="{{ url }}">
<i class="icon-right-open"></i>More
</a>
{% endif %}
</div>
</div>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment