Sha256: 5ad18ce10df4c3c057981ed71edce8aa9326f162b39977beb898f8f520b925c3

Contents?: true

Size: 1.07 KB

Versions: 2

Compression:

Stored size: 1.07 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 custom-border">
          {%- 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 class="card-title">
              {{ 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

2 entries across 2 versions & 1 rubygems

Version Path
dark-blog-theme-3.0.1 _layouts/home.html
dark-blog-theme-3.0.0 _layouts/home.html