~xdavidwu/xdavidwu.link

da11958051acd69e1782bb08f1d3a60078a624af — iBug ♦ 4 years ago e861ab4
Allow override of page excerpt in heading (via tagline) (#2307)

Allow the use of `page.tagline` to override `page.excerpt` in heading area
1 files changed, 3 insertions(+), 1 deletions(-)

M _includes/page__hero.html
M _includes/page__hero.html => _includes/page__hero.html +3 -1
@@ 42,7 42,9 @@
          {{ page.title | default: site.title | markdownify | remove: "<p>" | remove: "</p>" }}
        {% endif %}
      </h1>
      {% if page.header.show_overlay_excerpt != false and page.excerpt %}
      {% if page.tagline %}
        <p class="page__lead">{{ page.tagline | markdownify | remove: "<p>" | remove: "</p>" }}</p>
      {% elsif page.header.show_overlay_excerpt != false and page.excerpt %}
        <p class="page__lead">{{ page.excerpt | markdownify | remove: "<p>" | remove: "</p>" }}</p>
      {% endif %}
      {% if page.read_time %}