Sha256: 46ace50d284515fe345314a49f855394e25fd425ed512425ead5d90963f0f3c3

Contents?: true

Size: 1.46 KB

Versions: 5

Compression:

Stored size: 1.46 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 %}
        <a class="item" href="{{ item.url }}" role="article">
          {% include post-card.html %}
        </a>
      {% endfor %}
    </div>
  </section>
{% endif %}

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
jekyll-theme-open-project-0.1.6 _includes/home-project.html
jekyll-theme-open-hub-0.1.5 _includes/home-project.html
jekyll-theme-open-hub-0.1.4 _includes/home-project.html
jekyll-theme-open-hub-0.1.3 _includes/home-project.html
jekyll-theme-open-hub-0.1.2 _includes/home-project.html