Skip to content

Commit

Permalink
Allow override of page excerpt in heading (via tagline) (mmistakes#2307)
Browse files Browse the repository at this point in the history
Allow the use of `page.tagline` to override `page.excerpt` in heading area
  • Loading branch information
iBug authored and chukycheese committed Sep 18, 2023
1 parent 7a119f5 commit 1554037
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion _includes/page__hero.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ <h1 id="page-title" class="page__title" itemprop="headline">
{{ 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 %}
Expand Down

0 comments on commit 1554037

Please sign in to comment.