~xdavidwu/xdavidwu.link

b99a1395d37866b916e43380468c5df0e447dc1a — iBug ♦ 4 years ago c263761
Support page header (page hero) in archive-taxonomy layouts (#2320)

* Support page header in archive-taxonomy layout
1 files changed, 16 insertions(+), 2 deletions(-)

M _layouts/archive-taxonomy.html
M _layouts/archive-taxonomy.html => _layouts/archive-taxonomy.html +16 -2
@@ 3,13 3,27 @@ layout: default
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>
\ No newline at end of file
</div>