Skip to content

Commit

Permalink
Remove deprecated "page.header.cta_url" setting (#4821)
Browse files Browse the repository at this point in the history
  • Loading branch information
iBug committed May 4, 2024
1 parent ab42c3b commit ed883ea
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
3 changes: 0 additions & 3 deletions _includes/page__hero.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@ <h1 id="page-title" class="page__title" itemprop="headline">
<p class="page__lead">{{ page.excerpt | markdownify | remove: "<p>" | remove: "</p>" }}</p>
{% endif %}
{% include page__meta.html %}
{% if page.header.cta_url %}
<p><a href="{{ page.header.cta_url | relative_url }}" class="btn btn--light-outline btn--large">{{ page.header.cta_label | default: site.data.ui-text[site.locale].more_label | default: "Learn More" }}</a></p>
{% endif %}
{% if page.header.actions %}
<p>
{% for action in page.header.actions %}
Expand Down
2 changes: 0 additions & 2 deletions docs/_docs/10-layouts.md
Original file line number Diff line number Diff line change
Expand Up @@ -463,8 +463,6 @@ To overlay text on top of a header image you have a few more options:
| **excerpt** | Auto-generated page excerpt is added to the overlay text or can be overridden. | |
| **tagline** | Overrides page excerpt. Useful when header text needs to be different from excerpt in archive views. | |
| **actions** | Call to action button links (`actions` array: `label` and `url`). More than one button link can be assigned. | |
| **cta_label** | Deprecated, use `actions` instead. Call to action button text label. | `more_label` in UI Text data file |
| **cta_url** | Deprecated, use `actions` instead. Call to action button URL. | |

[mdn-linear-gradient]: https://developer.mozilla.org/en-US/docs/Web/CSS/linear-gradient()

Expand Down

0 comments on commit ed883ea

Please sign in to comment.