_includes/site-feature.html in alembic-jekyll-theme-0.1.1 vs _includes/site-feature.html in alembic-jekyll-theme-0.1.2

- old
+ new

@@ -1,17 +1,15 @@ {% assign feature_text = page.feature_text %} {% assign feature_image = page.feature_image %} -{% if page.collection and page.is_page %} - {% assign collectiondata = site.collections | where: "label", page.collection | first %} +{% if page.collectionpage %} + {% assign collectiondata = site.collections | where: "label", page.collectionpage | first %} {% assign feature_text = collectiondata.feature_text %} {% assign feature_image = collectiondata.feature_image %} {% endif %} {% if feature_text or feature_image %} <div class="feature"{% if feature_image %} style="background-image: url({{ feature_image }})"{% endif %}> - {% if feature_text %} <div class="container typeset"> {{ feature_text | markdownify }} </div> - {% endif %} </div> {% endif %}