From ed883ea2d46f0480103a239ca2fe0a91faf09680 Mon Sep 17 00:00:00 2001 From: iBug Date: Sun, 5 May 2024 04:35:57 +0800 Subject: [PATCH] Remove deprecated "page.header.cta_url" setting (#4821) --- _includes/page__hero.html | 3 --- docs/_docs/10-layouts.md | 2 -- 2 files changed, 5 deletions(-) diff --git a/_includes/page__hero.html b/_includes/page__hero.html index 2d56b9e3..ebc0b6b4 100644 --- a/_includes/page__hero.html +++ b/_includes/page__hero.html @@ -36,9 +36,6 @@

{{ page.excerpt | markdownify | remove: "

" | remove: "

" }}

{% endif %} {% include page__meta.html %} - {% if page.header.cta_url %} -

{{ page.header.cta_label | default: site.data.ui-text[site.locale].more_label | default: "Learn More" }}

- {% endif %} {% if page.header.actions %}

{% for action in page.header.actions %} diff --git a/docs/_docs/10-layouts.md b/docs/_docs/10-layouts.md index 1760f96d..e0778988 100644 --- a/docs/_docs/10-layouts.md +++ b/docs/_docs/10-layouts.md @@ -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()