From f8637429783a42d40c998c93276e85caa6911287 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Janusz=20=22Ivellios=22=20Kamie=C5=84ski?= Date: Mon, 15 Jun 2026 17:56:18 +0200 Subject: [PATCH 1/2] feat(sponsors): added full_label field that can be used instead of the label Using label implies that in the template of the event each section of the sponsors will show up as \{label\} Sponsors. Some events may need to add different types of partners, which are not explicitly Sponsors and adding automatic suffix of Sponsors makes them look awkward. To avoid that, this commit introduces a new field full_label which - when set - will be used in place of the 'label' Sponsors. The default still falls into label to maintain old events. The same rule applies to 'Join as...' link in the section. The label field is not required if full_label is used. --- themes/devopsdays-theme/layouts/partials/sponsors.html | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/themes/devopsdays-theme/layouts/partials/sponsors.html b/themes/devopsdays-theme/layouts/partials/sponsors.html index a573f8efe56..7f3354b6423 100644 --- a/themes/devopsdays-theme/layouts/partials/sponsors.html +++ b/themes/devopsdays-theme/layouts/partials/sponsors.html @@ -35,7 +35,9 @@
- {{- if eq $level.max 1 -}} + {{- if $level.full_label -}} + + {{- else if eq $level.max 1 -}} {{- else -}} @@ -54,7 +56,11 @@ {{- else -}} {{- end -}} {{- end -}} From 8e209fc5a196c7488ab6ae340d32d809a206a852 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Janusz=20=22Ivellios=22=20Kamie=C5=84ski?= Date: Mon, 22 Jun 2026 19:52:04 +0200 Subject: [PATCH 2/2] doc: adding example use of full_label to the template --- utilities/examples/data/events/main.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/utilities/examples/data/events/main.yml b/utilities/examples/data/events/main.yml index 7e500f7dcad..d561551b420 100644 --- a/utilities/examples/data/events/main.yml +++ b/utilities/examples/data/events/main.yml @@ -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 @@ -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