diff --git a/_includes/news-item.html b/_includes/news-item.html index 14fa635..6d26201 100644 --- a/_includes/news-item.html +++ b/_includes/news-item.html @@ -7,17 +7,48 @@ {% assign icon = "newspaper-o" %} {% endif %} -
  • - - {{ post.date | date: '%B %d, %Y' }} +{% capture news %}
    - {% if post.shortnews %} - {{ post.content | remove: '

    ' | remove: '

    ' }} - {% else %} -
    {{ post.title }}
    - {{ post.excerpt | remove: '

    ' | remove: '

    ' }} -
    - Read more » + {% if post.shortnews %} + {{ post.content | markdownify | remove: '

    ' | remove: '

    ' }} + {% else %} +
    {{ post.title }}
    + {{ post.excerpt | markdownify | remove: '

    ' | remove: '

    ' }} +
    + Read more » {% endif %}
    +{% endcapture %} + +{% capture header %} + +{{ post.date | date: '%B %d, %Y' }} +{% endcapture %} + +
  • + {% if post.image %} + + {% capture img %} + + {% endcapture %} + +
    +
    + {{ header }} + {{ news }} +
    +
    + {% if post.image_link %} + {{ img }} + {% else %} + {{ img }} + {% endif %} +
    +
    + {% else %} + {{ header }} + {{ news }} + {% endif %}