_layouts/spec-index.html in jekyll-theme-open-project-1.0.0.pre3 vs _layouts/spec-index.html in jekyll-theme-open-project-1.0.0.pre4

- old
+ new

@@ -1,17 +1,25 @@ --- layout: default --- -{% include index-page-item-filter.html url_tag_prefix="/specs/" items=page.items tag=page.tag %} +{% if site.is_hub %} + {% include index-page-item-filter.html url_tag_prefix="/specs/" items=page.items tag=page.tag %} +{% endif %} <section class="items"> - {% include symbol.svg %} + {% if site.is_hub %} + {% include _includes/symbol.svg %} + {% endif %} {% for spec in page.items %} - {% assign project_name = spec.url | split: "/" | slice: 2 | first %} - {% assign project_index_path = "_projects/" | append: project_name | append: "/index.md" %} - {% assign project = site.projects | where: "path", project_index_path | first %} + {% if site.is_hub %} + {% assign project_name = spec.url | split: "/" | slice: 2 | first %} + {% assign project_index_path = "_projects/" | append: project_name | append: "/index.md" %} + {% assign project = site.projects | where: "path", project_index_path | first %} - {% include software-card-hub.html item=spec project_name=project_name project_data=project %} + {% include software-card-hub.html item=spec item_type='specs' project_name=project_name project_data=project %} + {% else %} + {% include software-card-hub.html item=spec item_type='specs' %} + {% endif %} {% endfor %} </section>