Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions themes/devopsdays-theme/layouts/partials/sponsors.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@
<div class="row cta-row">
<!--first sponsor row-->
<div class="col-md-12">
{{- if eq $level.max 1 -}}
{{- if $level.full_label -}}
<h4 class="sponsor-cta">{{ $level.full_label }}</h4>
{{- else if eq $level.max 1 -}}
<h4 class="sponsor-cta">{{ $level.label }} Sponsor</h4>
{{- else -}}
<h4 class="sponsor-cta">{{ $level.label }} Sponsors</h4>
Expand All @@ -54,7 +56,11 @@ <h4 class="sponsor-cta">{{ $level.label }} Sponsors</h4>
{{- else -}}
<a href = '{{ (printf "/events/%s/sponsor" $e.name) }}' class="sponsor-cta">
{{- end -}}
<i>Join as {{ $level.label }} Sponsor!</i>
{{- if $level.full_label -}}
<i>Join as {{ $level.full_label }}!</i>
{{- else -}}
<i>Join as {{ $level.label }} Sponsor!</i>
{{- end -}}
</a>
{{- end -}}
{{- end -}}
Expand Down
3 changes: 3 additions & 0 deletions utilities/examples/data/events/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ sponsors_accepted : "yes" # Whether you want "Become a XXX Sponsor!" link
# You may optionally include a "max" attribute to limit the number of sponsors per level. For
# unlimited sponsors, omit the max attribute or set it to 0. If you want to prevent all
# sponsorship for a specific level, it is best to remove the level.
# You can also use "full_label" to override the default label generated for the level
# which is adding "Sponsors" to the end of the label (e.g. "Gold" becomes "Gold Sponsors")
sponsor_levels:
- id: gold
label: Gold
Expand All @@ -105,3 +107,4 @@ sponsor_levels:
label: Bronze
- id: community
label: Community
# full_label: Community Partners # Optional: Use this if you want a different label displayed on the page for the level
Loading