Sha256: 949d5154b64916ce622011e69f232679f1ff53c40f52daea25af7f845ef0bbc8

Contents?: true

Size: 1.04 KB

Versions: 1

Compression:

Stored size: 1.04 KB

Contents

---
layout: default
---
<div class="home">
  {%- if page.title -%}
    <h1 class="page-heading">{{ page.title }}</h1>
  {%- endif -%}

  {{ content }}

  {%- if site.posts.size > 0 -%}
    <h2 class="post-list-heading">{{ page.list_title | default: 'Featured Posts' }}</h2>
    <ul class="post-list">
      {%- for post in site.posts -%}
        <li class="post-card">
          {%- if post.image -%}
            <img class="post-image" src="{{- post.image | relative_url -}}">
          {%- endif -%}
          <a class="post-link" href="{{ post.url | relative_url }}">
            {%- assign date_format = site.minima.date_format | default: '%b %-d, %Y' -%}
            <span class="post-meta">{{ post.date | date: date_format }}</span>
            <h3>
              {{ post.title | escape }}
            </h3>
            <span class="post-excerpt">{{ post.excerpt }}</span>
          </a>
        </li>
      {%- endfor -%}
    </ul>

    <p class="rss-subscribe">subscribe <a href="{{ "/feed.xml" | relative_url }}">via RSS</a></p>
  {%- endif -%}
</div>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dark-blog-theme-2.1.0 _layouts/home.html