Skip to content

Commit 6fa07eb

Browse files
committed
feat: update feature docs
1 parent a299925 commit 6fa07eb

File tree

2 files changed

+19
-8
lines changed

2 files changed

+19
-8
lines changed

docs/guides/feature-configuration.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,15 @@ you may need to obtain the user's consent before establishing such connections
2929
of the page. To change the text of the banner, overwrite the corresponding
3030
translations.
3131

32+
## Secondary Call to Action (CTA)
33+
34+
The Event theme includes an optional **secondary call to action (CTA)** to engage users in additional actions related to the event, such as submitting a talk, joining a newsletter, participating in a giveaway, or other actions.
35+
36+
### Parameters
37+
38+
- `secondaryCallToAction.label`: The label for the secondary CTA button that typically appears in the event banner.
39+
- `secondaryCallToAction.url`: The URL to which users are redirected when they click the secondary CTA button.
40+
3241
## Countdown
3342

3443
The home page displays a countdown that counts down till the start of the event.

layouts/partials/sections/event-title.html

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,16 @@ <h2 class="event-title-section__subheading">
2727
<div class="event-title-section__footer-buttons">
2828
{{- partial "cta/button.html" (dict "eventbriteId" $input.eventbriteId "ctaUrl" $input.ctaUrl "buttonClass" "button--scaled") }}
2929

30-
{{- with $input.ctaSecondary.url }}
31-
<a
32-
href="{{ . }}"
33-
class="button button--outlined button--scaled"
34-
rel="noopener noreferrer external"
35-
target="_blank">
36-
{{ $input.ctaSecondary.label }}
37-
</a>
30+
{{- with $input.ctaSecondary }}
31+
{{- if .url }}
32+
<a
33+
href="{{ .url }}"
34+
class="button button--outlined button--scaled"
35+
rel="noopener noreferrer external"
36+
target="_blank">
37+
{{ .label }}
38+
</a>
39+
{{- end }}
3840
{{- end }}
3941
</div>
4042
</div>

0 commit comments

Comments
 (0)