Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Time-boxed entries for the banner #4429

Merged
merged 60 commits into from
May 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
9427bd3
Time-boxed entries for the banner
ricardoamaro May 6, 2024
9a9e870
Merge branch 'main' into time-boxed-banner
ricardoamaro May 6, 2024
1a209d9
Add data file
ricardoamaro May 6, 2024
00fd8f0
Merge branch 'time-boxed-banner' of github.com:ricardoamaro/opentelem…
ricardoamaro May 6, 2024
59013b1
fixed code styles
ricardoamaro May 6, 2024
54780fb
try remove sort
ricardoamaro May 6, 2024
724201b
Merge branch 'main' into time-boxed-banner
ricardoamaro May 6, 2024
e424337
entriesToShow
ricardoamaro May 6, 2024
997ad7e
Merge branch 'time-boxed-banner' of github.com:ricardoamaro/opentelem…
ricardoamaro May 6, 2024
eb052cd
make div
ricardoamaro May 6, 2024
91b02be
use html
ricardoamaro May 6, 2024
08d510e
use url that works
ricardoamaro May 6, 2024
9feb4a5
change to message only
ricardoamaro May 6, 2024
449680c
fix typo
ricardoamaro May 6, 2024
c529f57
debug
ricardoamaro May 6, 2024
7ad253e
test ge
ricardoamaro May 6, 2024
88287fd
test several dates
ricardoamaro May 6, 2024
1ef65ae
2023 dates
ricardoamaro May 6, 2024
c8bbd58
test other dates
ricardoamaro May 6, 2024
1a4f2fb
show 2 entries
ricardoamaro May 6, 2024
4d2fcc1
sort .endDate
ricardoamaro May 6, 2024
8b442dc
change sort logic
ricardoamaro May 6, 2024
f6c5c8d
Cleanup
ricardoamaro May 6, 2024
3d64c6e
Cleanup
ricardoamaro May 6, 2024
145c539
Update data/banners.yaml
ricardoamaro May 7, 2024
29eec6a
Update data/banners.yaml
ricardoamaro May 7, 2024
86fceeb
Add icon support
ricardoamaro May 7, 2024
4238ddc
Merge branch 'main' into time-boxed-banner
ricardoamaro May 7, 2024
6c8ac7d
use backticks
ricardoamaro May 7, 2024
bd913ef
Merge branch 'time-boxed-banner' of github.com:ricardoamaro/opentelem…
ricardoamaro May 7, 2024
5b66b34
Merge branch 'main' into time-boxed-banner
ricardoamaro May 7, 2024
b965d4b
Merge branch 'main' into time-boxed-banner
ricardoamaro May 7, 2024
4ee2c59
Try new approach
ricardoamaro May 8, 2024
3091e92
Merge branch 'main' into time-boxed-banner
ricardoamaro May 8, 2024
c2a32d3
keep previous elements
ricardoamaro May 8, 2024
0238ab7
Merge branch 'time-boxed-banner' of github.com:ricardoamaro/opentelem…
ricardoamaro May 8, 2024
600711c
fix styles
ricardoamaro May 8, 2024
6aa6638
Sort by end date .to
ricardoamaro May 8, 2024
799cf06
Add 'markdownify' to cspell dictionary
ricardoamaro May 8, 2024
0c47fba
Add to the file itself
ricardoamaro May 8, 2024
cc027a8
fix target does not exist --- index.html --> /events
ricardoamaro May 8, 2024
4542a38
use a page that exists
ricardoamaro May 8, 2024
eed0871
Merge branch 'main' into time-boxed-banner
ricardoamaro May 9, 2024
0489f04
Results from /fix:all
opentelemetrybot May 9, 2024
1e3599d
remove test banners
ricardoamaro May 9, 2024
187e2ac
Merge branch 'time-boxed-banner' of github.com:ricardoamaro/opentelem…
ricardoamaro May 9, 2024
a2d7c20
Merge branch 'main' into time-boxed-banner
ricardoamaro May 9, 2024
2e865b3
Merge branch 'main' into time-boxed-banner
ricardoamaro May 11, 2024
1e593ef
limit 2 by default
ricardoamaro May 11, 2024
bf2ea0d
fix error
ricardoamaro May 11, 2024
1daa134
add isset to cSpell
ricardoamaro May 11, 2024
b6f63c2
Results from /fix:all
opentelemetrybot May 11, 2024
134023e
Merge branch 'main' into time-boxed-banner
ricardoamaro May 13, 2024
a4069c6
Update layouts/partials/banner.md
ricardoamaro May 14, 2024
fb5598e
Merge branch 'main' into time-boxed-banner
ricardoamaro May 14, 2024
df3a2e8
Address all feedback
ricardoamaro May 14, 2024
97e8b4b
fix styles
ricardoamaro May 14, 2024
964be4a
fix code
ricardoamaro May 14, 2024
7f8a046
Results from /fix:all
opentelemetrybot May 14, 2024
ef4e83b
Merge branch 'main' into time-boxed-banner
svrnm May 16, 2024
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
14 changes: 13 additions & 1 deletion content/en/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,25 @@ title: OpenTelemetry
description: >-
High-quality, ubiquitous, and portable telemetry to enable effective
observability
show_banner: true
outputs:
- HTML
- REDIRECTS # Include this `content/en` ONLY
developer_note:
The blocks/cover shortcode (used below) will use as a background image any
image file containing "background" in its name.
show_banner: true
limit_banner: 2 # Default to 2, adjust as needed
banners:
- message:
'<i class="fas fa-bullhorn"></i> Join us for [**OTel Community Day** on
June
25th](https://events.linuxfoundation.org/open-telemetry-community-day/)!'
to: 2024-06-25
- message:
'<i class="fas fa-bullhorn"></i> Help improve OTel and Prometheus
interoperability: [complete our
survey](https://forms.gle/bZAG9f7udoJsjZUG9) by May 31'
to: 2024-05-31
---

<div class="d-none"><a rel="me" href="https://fosstodon.org/@opentelemetry"></a></div>
Expand Down
31 changes: 17 additions & 14 deletions layouts/partials/banner.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
{{/* cSpell:ignore contribfest */ -}}
{{ if .Params.show_banner -}}

{{/* cSpell:ignore markdownify */ -}}
{{ if and .Params.show_banner (gt (len (.Params.banners | default slice)) 0) }}
{{ $limit := .Params.limit_banner | default 2 }}
{{ $sorted := sort .Params.banners "to" }}
{{ $currentDate := now.Format "2006-01-02" }}
{{ $filtered := slice }}
{{ range $sorted }}
{{ if le $currentDate .to }}
{{ if lt (len $filtered) $limit }}
{{ $filtered = $filtered | append . }}
{{ end }}
{{ end }}
{{ end }}
<div class="o-banner">

<i class="fas fa-bullhorn"></i> Join us for
[**OTel Community Day** on June 25th](https://sessionize.com/OTel-Community-Day/)!


{{ range $filtered }}
<!-- prettier-ignore -->
<i class="fas fa-bullhorn"></i>
Help improve OTel and Prometheus interoperability: [complete our survey](https://forms.gle/bZAG9f7udoJsjZUG9) by May 31
{.pt-0}


{{ .message | markdownify }}
{{ end }}
</div>
{{ end -}}
{{ end -}}