Sha256: cb5bebf5884ffd439547f9d2f1657cef55592849a82aa05a8badc691c14fa9e1

Contents?: true

Size: 1.75 KB

Versions: 2

Compression:

Stored size: 1.75 KB

Contents

---
layout: default
---

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

  {{ content }}

  {%- if site.posts.size > 0 -%}
    <div style="display: flex; flex-direction: row; justify-content: flex-start; flex-wrap: wrap;" class="post-list">
      {%- for post in site.posts -%}
      <a href="{{ post.url | relative_url }}">
        <div style="border: #f0f0f0 solid 1px; margin: 5px; max-width: 150px; min-height: 220px; border-radius: 3px;">
          {%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
          {%- if post.image -%}
            <div style="padding:0;margin:0; text-align: center;">
              <img src="{{ post.image | relative_url }}" style="border-radius: 3px; max-width: 150px; margin: auto;" />
            </div>
          {%- endif -%}
          <div style="padding: 7px">
            <h3>
              {{ post.title | escape }}
            </h3>
            <span class="post-meta">{{ post.date | date: date_format }}</span>
            {%- if site.show_excerpts -%}
              {{ post.excerpt }}
            {%- endif -%}
          </div>
        </div>
      </a>
      {%- endfor -%}
    </div>

  {%- endif -%}

  {%- if site.twitter_username and site.show_twitter_feed -%}
  <h2>Twitter feed</h2>
  <center>
  <a data-chrome="noheader, noscrollbar, nofooter, noborders" data-tweet-limit="3" data-dnt="true" class="twitter-timeline" href="https://twitter.com/{{ site.twitter_username }}">
      Tweets
    </a>
    <center>
      <a target="_blank" href="https://twitter.com/{{ site.twitter_username }}">Load more tweets</a>
    </center>
    <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
  </center>
  {%- endif -%}

</div>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
miniscule-0.2.2 _layouts/home.html
miniscule-0.2.1 _layouts/home.html