Skip to content

Commit 13d7a23

Browse files
iBugmmistakes
authored andcommittedNov 12, 2019
Support page header (page hero) in archive-taxonomy layouts (mmistakes#2320)
* Support page header in archive-taxonomy layout
1 parent 4ef8db7 commit 13d7a23

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed
 

‎_layouts/archive-taxonomy.html

+16-2
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,27 @@
33
author_profile: false
44
---
55

6+
{% if page.header.overlay_color or page.header.overlay_image or page.header.image %}
7+
{% include page__hero.html %}
8+
{% elsif page.header.video.id and page.header.video.provider %}
9+
{% include page__hero_video.html %}
10+
{% endif %}
11+
12+
{% if page.url != "/" and site.breadcrumbs %}
13+
{% unless paginator %}
14+
{% include breadcrumbs.html %}
15+
{% endunless %}
16+
{% endif %}
17+
618
<div id="main" role="main">
719
{% include sidebar.html %}
820

921
<div class="archive">
10-
<h1 class="page__title">{{ page.title }}</h1>
22+
{% unless page.header.overlay_color or page.header.overlay_image %}
23+
<h1 id="page-title" class="page__title">{{ page.title }}</h1>
24+
{% endunless %}
1125
{% for post in page.posts %}
1226
{% include archive-single.html %}
1327
{% endfor %}
1428
</div>
15-
</div>
29+
</div>

0 commit comments

Comments
 (0)
Please sign in to comment.