Skip to content

Commit

Permalink
Support page header (page hero) in archive-taxonomy layouts (#2320)
Browse files Browse the repository at this point in the history
* Support page header in archive-taxonomy layout
  • Loading branch information
iBug authored and mmistakes committed Nov 12, 2019
1 parent 4ef8db7 commit 13d7a23
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions _layouts/archive-taxonomy.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,27 @@
author_profile: false
---

{% if page.header.overlay_color or page.header.overlay_image or page.header.image %}
{% include page__hero.html %}
{% elsif page.header.video.id and page.header.video.provider %}
{% include page__hero_video.html %}
{% endif %}

{% if page.url != "/" and site.breadcrumbs %}
{% unless paginator %}
{% include breadcrumbs.html %}
{% endunless %}
{% endif %}

<div id="main" role="main">
{% include sidebar.html %}

<div class="archive">
<h1 class="page__title">{{ page.title }}</h1>
{% unless page.header.overlay_color or page.header.overlay_image %}
<h1 id="page-title" class="page__title">{{ page.title }}</h1>
{% endunless %}
{% for post in page.posts %}
{% include archive-single.html %}
{% endfor %}
</div>
</div>
</div>

0 comments on commit 13d7a23

Please sign in to comment.