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:
parent
f2af873e94
commit
be0e7ca971
1 changed files with 3 additions and 1 deletions
|
@ -42,7 +42,9 @@
|
||||||
{{ page.title | default: site.title | markdownify | remove: "<p>" | remove: "</p>" }}
|
{{ page.title | default: site.title | markdownify | remove: "<p>" | remove: "</p>" }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</h1>
|
</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>
|
<p class="page__lead">{{ page.excerpt | markdownify | remove: "<p>" | remove: "</p>" }}</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if page.read_time %}
|
{% if page.read_time %}
|
||||||
|
|
Loading…
Reference in a new issue