Skip to content

Latest commit

 

History

History
57 lines (54 loc) · 2.56 KB

File metadata and controls

57 lines (54 loc) · 2.56 KB
layout main
{% for post in site.posts %}
        <!--
        <span class="category">
            <a href="{{ site.url }}{{ site.baseurl }}/categoria/{{ post.category }}">
                <span>{{ post.category }}</span>
            </a>
        </span>
        -->
        
        <div class="box-body">
            {% if post.image %}
                <div class="cover">
                    {% include new-post-tag.html date=post.date %}
                    <a href="{{ post.url | prepend: site.baseurl }}" {%if isnewpost %}class="new-post"{% endif %}>
                        <!-- <img src="assets/img/placeholder.png" data-url="{{ post.image }}" class="preload"> -->
                        <span class="img" style="background-image:url({{ post.image }})"></span>
                    </a>
                </div>
            {% endif %}
            <div class="box-info">
                <div class="author-date">
                    <div class="date">
                        <meta itemprop="datePublished" content="{{ post.date | date_to_xmlschema }}">
                        <time itemprop="datePublished" datetime="{{ post.date | date_to_xmlschema }}" class="date">
                            {% include date.html date=post.date %}
                        </time>
                    </div>
                </div>
                <a class="post-link" href="{{ post.url | prepend: site.baseurl }}">
                    <h2 class="post-title" itemprop="name">
                        <span class="text">
                            {{ post.title }}
                        </span>
                    </h2>
                </a>
                <a class="post-link" href="{{ post.url | prepend: site.baseurl }}">
                    <p class="description">{{ post.introduction }}</p>
                </a>
                <div class="tags">
                    {% for tag in post.tags %}
                        <a href="{{ site.baseurl}}/tags/#{{tag | slugify }}">{{ tag }}</a>
                    {% endfor %}
                </div>
            </div>
        </div>
    </article>
{% endfor %}
</div>