Allow override of page excerpt in heading (via tagline) (#2307)

Allow the use of `page.tagline` to override `page.excerpt` in heading area
This commit is contained in:
iBug ♦ 2020-01-08 02:01:47 +08:00 committed by Michael Rose
parent f2af873e94
commit be0e7ca971

View file

@ -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 %}