_layouts/spec-index.html in jekyll-theme-open-project-1.0.3 vs _layouts/spec-index.html in jekyll-theme-open-project-1.0.4
- old
+ new
@@ -4,15 +4,17 @@
{% if site.is_hub %}
{% include index-page-item-filter.html url_tag_prefix="/specs/" items=site.all_specs tag=page.tag %}
{% endif %}
+{% assign items = page.items | default: site.all_specs %}
+
<section class="items">
{% if site.is_hub %}
{% include assets/symbol.svg %}
{% endif %}
- {% for spec in site.all_specs %}
+ {% for spec in items %}
{% 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 %}