File tree 2 files changed +30
-15
lines changed
2 files changed +30
-15
lines changed Original file line number Diff line number Diff line change @@ -3,13 +3,25 @@ title: OpenTelemetry
3
3
description : >-
4
4
High-quality, ubiquitous, and portable telemetry to enable effective
5
5
observability
6
- show_banner : true
7
6
outputs :
8
7
- HTML
9
8
- REDIRECTS # Include this `content/en` ONLY
10
9
developer_note :
11
10
The blocks/cover shortcode (used below) will use as a background image any
12
11
image file containing "background" in its name.
12
+ show_banner : true
13
+ limit_banner : 2 # Default to 2, adjust as needed
14
+ banners :
15
+ - message :
16
+ ' <i class="fas fa-bullhorn"></i> Join us for [**OTel Community Day** on
17
+ June
18
+ 25th](https://events.linuxfoundation.org/open-telemetry-community-day/)!'
19
+ to : 2024-06-25
20
+ - message :
21
+ ' <i class="fas fa-bullhorn"></i> Help improve OTel and Prometheus
22
+ interoperability: [complete our
23
+ survey](https://forms.gle/bZAG9f7udoJsjZUG9) by May 31'
24
+ to : 2024-05-31
13
25
---
14
26
15
27
<div class =" d-none " ><a rel =" me " href =" https://fosstodon.org/@opentelemetry " ></a ></div >
Original file line number Diff line number Diff line change 1
- {{/* cSpell: ignore contribfest * / -}}
2
- {{ if .Params.show_banner -}}
3
-
1
+ {{/* cSpell: ignore markdownify * / -}}
2
+ {{ if and .Params.show_banner (gt (len (.Params.banners | default slice)) 0) }}
3
+ {{ $limit := .Params.limit_banner | default 2 }}
4
+ {{ $sorted := sort .Params.banners "to" }}
5
+ {{ $currentDate := now.Format "2006-01-02" }}
6
+ {{ $filtered := slice }}
7
+ {{ range $sorted }}
8
+ {{ if le $currentDate .to }}
9
+ {{ if lt (len $filtered) $limit }}
10
+ {{ $filtered = $filtered | append . }}
11
+ {{ end }}
12
+ {{ end }}
13
+ {{ end }}
4
14
<div class =" o-banner " >
5
-
6
- <i class =" fas fa-bullhorn " ></i > Join us for
7
- [ ** OTel Community Day** on June 25th] ( https://sessionize.com/OTel-Community-Day/ ) !
8
-
9
-
15
+ {{ range $filtered }}
10
16
<!-- prettier-ignore -->
11
- <i class =" fas fa-bullhorn " ></i >
12
- Help improve OTel and Prometheus interoperability: [ complete our survey] ( https://forms.gle/bZAG9f7udoJsjZUG9 ) by May 31
13
- {.pt-0}
14
-
15
-
17
+ {{ .message | markdownify }}
18
+ {{ end }}
16
19
</div >
17
- {{ end -}}
20
+ {{ end -}}
You can’t perform that action at this time.
0 commit comments