You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1.5 KiB
HTML
55 lines
1.5 KiB
HTML
|
|
{% assign item = include.item %}
|
|
{% if item.icon %}
|
|
{% assign icon = item.icon %}
|
|
{% assign class = "shortnews" %}
|
|
{% else %}
|
|
{% assign icon = "newspaper-o" %}
|
|
{% endif %}
|
|
|
|
{% capture news %}
|
|
<div>
|
|
{% if post.shortnews %}
|
|
{{ post.content | markdownify | remove: '<p>' | remove: '</p>' }}
|
|
{% else %}
|
|
<h5> <a href="{{ site.base }}{{ post.url }}"> {{ post.title }} </a> </h5>
|
|
{{ post.excerpt | markdownify | remove: '<p>' | remove: '</p>' }}
|
|
<br>
|
|
<a href="{{ site.base }}{{ post.url }}"> Read more »</a>
|
|
{% endif %}
|
|
</div>
|
|
{% endcapture %}
|
|
|
|
{% capture header %}
|
|
<span class="fa fa-fw fa-{{ icon }}"></span>
|
|
<span class="date">{{ post.date | date: '%B %d, %Y' }}</span>
|
|
{% endcapture %}
|
|
|
|
<li class="{{ class }}">
|
|
{% if post.image %}
|
|
|
|
{% capture img %}
|
|
<img class="img-fluid d-block mx-auto"
|
|
style="{{ post.image_style }}"
|
|
src="{{ post.image }}">
|
|
{% endcapture %}
|
|
|
|
<div class="row">
|
|
<div class="col-sm-10">
|
|
{{ header }}
|
|
{{ news }}
|
|
</div>
|
|
<div class="col-sm-2">
|
|
{% if post.image_link %}
|
|
<a href="{{ post.image_link }}">{{ img }}</a>
|
|
{% else %}
|
|
{{ img }}
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
{% else %}
|
|
{{ header }}
|
|
{{ news }}
|
|
{% endif %}
|
|
</li>
|