Sha256: bf5cf6bb3407d4ac45914ef2df9fc0f68d2280746633409318fef1f84d84224e

Contents?: true

Size: 1.4 KB

Versions: 3

Compression:

Stored size: 1.4 KB

Contents

{% assign num_software = site.software | size %}
{% assign num_specs = site.specs | size %}
{% assign num_posts = site.posts | size %}

{% if num_software > 0 %}
  <section class="software">
    <h2 class="title">Software</h2>

    <div class="items">
      {% for item in site.software %}
        <a class="item" href="{{ item.url }}" role="article">
          {% if item.logo_svg %}
            <div class="logo-container" role="presentation">
              <div class="logo">{{ item.logo_svg }}</div>
            </div>
          {% endif %}
          <h3 class="header">{{ item.title }}</h3>
          <p class="body">
            {{ item.description }}
          </p>
        </a>
      {% endfor %}
    </div>
  </section>
{% endif %}

{% if num_specs > 0 %}
  <section class="specs">
    <h2 class="title">Specifications</h2>

    <div class="items">
      {% for item in site.specs %}
        <a class="item" href="{{ item.url }}" role="article">
          <h3 class="header">{{ item.title }}</h3>
          <p class="body">
            {{ item.description }}
          </p>
        </a>
      {% endfor %}
    </div>
  </section>
{% endif %}

{% if num_posts > 0 %}
  <section class="featured-posts">
    <h2 class="title">From the Blog</h2>

    <div class="items" role="presentation">
      {% for item in site.posts %}
        {% include post-card.html post=item %}
      {% endfor %}
    </div>
  </section>
{% endif %}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
jekyll-theme-open-project-1.0.0.pre3 _includes/home-project.html
jekyll-theme-open-project-1.0.0.pre2 _includes/home-project.html
jekyll-theme-open-project-1.0.0.pre.pre _includes/home-project.html