Sha256: edcdbdd443b4162e85e5a70fdcb8ccceba827fa15ccfd43d3a75db768fde5651

Contents?: true

Size: 1.79 KB

Versions: 8

Compression:

Stored size: 1.79 KB

Contents

{%-assign published_projects  = site.projects           | where: 'published', true -%}
{%-assign project_menu        = site.data.menus.sidebar | find: 'identifier', 'projects' -%}
{%-if published_projects != empty %}
          <!-- Section - Mini-posts -->
          <section>
            <header class="major">
              <h2><a href="{{-include.mini_posts_url | default: project_menu.url | default: '/projects'-}}" title="See all {{ include.section_title | default: project_menu.title | default: 'projects' | downcase-}}">{{-include.section_title | default: project_menu.title | default: "Projects"-}}</a></h2>
            </header>
            <div class="mini-posts">
            {%-for project in site.projects-%}
              {%-if project.published == true %}
              <article>
                <header>
                  <h3><a href="{{-project.url-}}" title="{{-project_menu.title | capitalize }} page for '{{-project.title-}}'">{{-project.title-}}</a></h3>
                </header>
                <figure>
                  <a href="{{-project.url-}}" title="{{-project_menu.title | capitalize }} page for '{{-project.title-}}'" class="image">
                    {% include item_image.html %}
                  </a>
                </figure>
                <p>{{-project.summary | markdownify-}}</p>
              </article>
              {%-endif-%}
            {%-endfor %}
            </div>
            {%-if site.show.more_button %}
            <ul class="actions">
              <li><a href="{{-include.mini_posts_url | default: project_menu.url | default: '/projects'-}}" title="See all {{ include.section_title | project_menu.title | default: 'projects' | downcase-}}" class="button">More</a></li>
            </ul>
            {%-endif %}
          </section> <!-- End Section - Mini-posts -->
{%-endif %}

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
jekyll-theme-editorial-1.0.8 _includes/mini-posts.html
jekyll-theme-editorial-1.0.7 _includes/mini-posts.html
jekyll-theme-editorial-1.0.6 _includes/mini-posts.html
jekyll-theme-editorial-1.0.5 _includes/mini-posts.html
jekyll-theme-editorial-1.0.4 _includes/mini-posts.html
jekyll-theme-editorial-1.0.3 _includes/mini-posts.html
jekyll-theme-editorial-1.0.2 _includes/mini-posts.html
jekyll-theme-editorial-1.0.1 _includes/mini-posts.html