{% macro create_media(link, img, title, abstract, tags, date) %}

<article class="media"><!--
  <figure class="media-left">
    <p class="image is-128x128">
{% if img is not starting_with("/") %}
                        <img src={{ link }}{{ img }} alt="Placeholder image">
                        {% endif %}
                        {% if img isstarting_with("/") %}
                        <img src="{{ get_url(path=img, trailing_slash=false) }}" alt="Placeholder image">
{% endif %}
    </p>-->
  </figure>
  <div class="media-content">
    <a href="{{ link | safe }}">
    <div class="content">
      <p>
        <strong class="title is-3">{{ title }}</strong>
        <br>
         {{ abstract | markdown | safe }}
      </p>
    </div>
    </a>
    <nav class="level is-mobile">
      <div class="level-left">
        {% for tag in tags %}
                        <a class="button is-small is-info is-light is-rounded" href="{{ get_url(path="tags/")  }}/{{ tag }}"> {{ tag }}</a>
        {% endfor %}
      </div>
    </nav>
  </div>
</article>

        
{% endmacro %}

