Skip to content

Commit a299925

Browse files
committed
fix: separate secondary cta
1 parent f6bea4a commit a299925

File tree

6 files changed

+14
-13
lines changed

6 files changed

+14
-13
lines changed

hugo.spec.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,9 @@ params:
3232
- Country
3333
callToAction:
3434
enableBanner: true
35-
other:
36-
secondaryUrl: https://example.com
35+
secondaryCallToAction:
36+
url: https://example.com
37+
label: Become a Speaker!
3738
featuredSessions:
3839
- '729576'
3940
- '729579'

hugo.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,12 @@ params:
7777
other:
7878
# 👇 Enter the URL of your ticket shop here.
7979
url:
80-
# 👇 Optional: Enter a secondary link, e.g. for "Call for Speakers".
81-
secondaryUrl:
8280
enableBanner: true
81+
callToActionSecondary:
82+
# 👇 Enter a secondary CTA link, e.g., for "Call for Speakers", "Join Newsletter", "Giveaway", etc.
83+
url:
84+
# 👇 Label text for the secondary CTA button.
85+
label:
8386
socialLinks:
8487
xUrl:
8588
facebookUrl:

i18n/de.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ countdown.minutes: Minuten
44
countdown.seconds: Sekunden
55
cta_banner.message: Sichern Sie sich jetzt Ihr Ticket!
66
cta_button.get_ticket: Jetzt registrieren!
7-
cta_button.secondary: Sprecher:in werden
87
cta_section.heading: Etwas spannendes entdeckt?
98
cta_section.subheading: Registriere dich noch heute!
109
cta_section.message: |

i18n/en.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ countdown.minutes: Mins
44
countdown.seconds: Secs
55
cta_banner.message: Get your ticket now!
66
cta_button.get_ticket: Register now!
7-
cta_button.secondary: Become a speaker!
87
cta_section.heading: Have you discovered something exciting?
98
cta_section.subheading: Register today!
109
cta_section.message: |

layouts/home.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"backgroundImage" .Site.Params.themes.event.images.titleBackground
88
"eventbriteId" .Site.Params.themes.event.callToAction.eventbrite.eventId
99
"ctaUrl" .Site.Params.themes.event.callToAction.other.url
10-
"ctaSecondaryUrl" .Site.Params.themes.event.callToAction.other.secondaryUrl
10+
"ctaSecondary" .Site.Params.themes.event.callToActionSecondary
1111
)
1212
}}
1313

layouts/partials/sections/event-title.html

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,17 @@ <h2 class="event-title-section__subheading">
2525

2626

2727
<div class="event-title-section__footer-buttons">
28-
{{- with $input.ctaSecondaryUrl }}
28+
{{- partial "cta/button.html" (dict "eventbriteId" $input.eventbriteId "ctaUrl" $input.ctaUrl "buttonClass" "button--scaled") }}
29+
30+
{{- with $input.ctaSecondary.url }}
2931
<a
3032
href="{{ . }}"
3133
class="button button--outlined button--scaled"
32-
rel="noopener noreferrer"
33-
rel="external"
34+
rel="noopener noreferrer external"
3435
target="_blank">
35-
{{ T "cta_button.secondary" }}
36+
{{ $input.ctaSecondary.label }}
3637
</a>
3738
{{- end }}
38-
39-
{{- partial "cta/button.html" (dict "eventbriteId" $input.eventbriteId "ctaUrl" $input.ctaUrl "buttonClass" "button--scaled") }}
4039
</div>
4140
</div>
4241
</section>

0 commit comments

Comments
 (0)