Sha256: 0ad8e6720d24a4b31aabcc7bdd539014ea6f64cbc49b2f27e984a64c9be38750

Contents?: true

Size: 992 Bytes

Versions: 1

Compression:

Stored size: 992 Bytes

Contents

---
layout: default
---

<div class="home">
    {%- if site.posts.size > 0 -%}
    <h2 class="post-list-heading">{{ page.list_title | default: "Posts" }}</h2>
    <div class="post-list">
        {%- for post in site.posts -%}
        <div class="post">
            {% assign post_image = post.image | default: site.default_post_image %}
            <div class="post-image" style='background: url("{{ post_image }} center center / cover")'></div>
            <h3>
                <a class="post-link" href="{{ post.url | relative_url }}">
                    {{ post.title | escape }}
                </a>
            </h3>
            {%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
            <span class="post-meta">{{ post.date | date: date_format }}</span>
            {%- if site.show_excerpts -%}
            {{ post.excerpt }}
            {%- endif -%}
        </div>
        {%- endfor -%}
    </div>

    {% else %}
    oh yeah
    {%- endif -%}

</div>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mini-blog-0.1.3 _layouts/home.html