Allow for setting a specific CTA from a library
This commit is contained in:
parent
e962e89ffb
commit
28a853398a
|
@ -8,6 +8,10 @@ banner_text: |
|
||||||
In less than 12 months, Drupal 7 will be end-of-life and no longer supported.
|
In less than 12 months, Drupal 7 will be end-of-life and no longer supported.
|
||||||
<a href="/drupal-upgrade">Plan your upgrade to Drupal 10 now</a>.
|
<a href="/drupal-upgrade">Plan your upgrade to Drupal 10 now</a>.
|
||||||
|
|
||||||
|
ctas:
|
||||||
|
d7eol: |
|
||||||
|
There's less than a year until Drupal 7's end-of-life date. <a href="%site.url%/drupal-upgrade">Plan your upgrade to Drupal 10 now!</a>
|
||||||
|
|
||||||
imports:
|
imports:
|
||||||
- ../../data/assets.yml
|
- ../../data/assets.yml
|
||||||
- ../../data/meta.yml
|
- ../../data/meta.yml
|
||||||
|
|
|
@ -10,6 +10,7 @@ tags:
|
||||||
- front-end
|
- front-end
|
||||||
- software-development
|
- software-development
|
||||||
- css
|
- css
|
||||||
|
cta: d7eol
|
||||||
---
|
---
|
||||||
|
|
||||||
This week on the Beyond Blocks podcast, I'm joined by Mark Conroy - Director of Development at Annertech to discuss all things front-end development and building something useful in one day.
|
This week on the Beyond Blocks podcast, I'm joined by Mark Conroy - Director of Development at Annertech to discuss all things front-end development and building something useful in one day.
|
||||||
|
|
|
@ -6,7 +6,11 @@
|
||||||
{{ parent() }}
|
{{ parent() }}
|
||||||
|
|
||||||
<p>- Oliver</p>
|
<p>- Oliver</p>
|
||||||
|
|
||||||
{% block cta %}
|
{% block cta %}
|
||||||
|
{% if page.cta and site.ctas[page.cta] is defined %}
|
||||||
|
<p>P.S. {{ site.ctas[page.cta]|raw }}</p>
|
||||||
|
{% else %}
|
||||||
{% set ctas = [
|
{% set ctas = [
|
||||||
'Are you still using Drupal 7 and don’t know what’s involved to upgrade to Drupal 10? <a href="https://www.oliverdavies.uk/call">Book a Drupal 7 upgrade consultation call</a> or <a href="https://www.oliverdavies.uk/drupal-upgrade">an upgrade roadmap</a>.',
|
'Are you still using Drupal 7 and don’t know what’s involved to upgrade to Drupal 10? <a href="https://www.oliverdavies.uk/call">Book a Drupal 7 upgrade consultation call</a> or <a href="https://www.oliverdavies.uk/drupal-upgrade">an upgrade roadmap</a>.',
|
||||||
'Need help or want another pair of eyes on your code? Book a <a href="https://www.oliverdavies.uk/call">1-on-1 consulting call</a> or an <a href="https://www.oliverdavies.uk/pair">online pair programming session</a> with a 100% money-back guarantee.',
|
'Need help or want another pair of eyes on your code? Book a <a href="https://www.oliverdavies.uk/call">1-on-1 consulting call</a> or an <a href="https://www.oliverdavies.uk/pair">online pair programming session</a> with a 100% money-back guarantee.',
|
||||||
|
@ -14,6 +18,7 @@
|
||||||
] %}
|
] %}
|
||||||
|
|
||||||
<p>P.S. {{ random(ctas)|raw }}</p>
|
<p>P.S. {{ random(ctas)|raw }}</p>
|
||||||
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue