Skip to content
Merged
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
34 changes: 34 additions & 0 deletions assets/scss/_styles_project.scss
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,37 @@ assets/scss/_styles_project.scss
.tab-body {
padding: 0rem;
}

// Styling for announcement banner
.menu-banner {
@include media-breakpoint-up(md) {
width: 100%;
position: fixed;
margin-left: -15px;
z-index: 31;
top: 4rem;
}

//--td-pre-bg: #{adjust-color($gray-900, $lightness: -2.5%)};
--td-pre-bg: black;

background: var(--td-pre-bg);
color: var(--bs-body-color);
text-align: center;
height: 24px;

& p {
// padding: 0.5rem;
// margin-bottom: initial;
color: white;
}
}

// Adds a padding because the announcements banner is too close to the breadcrumb
header {
padding-bottom: 8px;
}
.td-page-meta {
// Adds a margin because the announcements banner is too close
margin-top: 16px;
}
6 changes: 6 additions & 0 deletions content/announcements/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: Announcements
cascade:
type: docs
headless: true
---
6 changes: 6 additions & 0 deletions content/announcements/kubecon-na-2024.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: Observability Day North America
expiryDate: 2024-11-15
weight: -1 # top
---
<i class="fas fa-bullhorn"></i> Meet us at [**Observability Day North America**](https://colocatedeventsna2024.sched.com/event/1iztP/turn-the-volume-down-on-noisy-neighbors-sandor-guba-axoflow) (part of KubeCon) in Salt Lake City on November 12!
2 changes: 2 additions & 0 deletions content/docs/_index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
title: Logging operator
weight: 400
cascade:
show_banner: true
---

Welcome to the Logging operator documentation!
Expand Down
10 changes: 10 additions & 0 deletions layouts/partials/banner.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{{ if .Params.show_banner -}}
{{ $announcements := site.GetPage "announcements" -}}
{{ if $announcements -}}
<div class="menu-banner">
{{ range $announcements.RegularPages }}
<div>{{ .Content }}</div>
{{ end -}}
</div>
{{ end -}}
{{ end -}}
1 change: 1 addition & 0 deletions layouts/partials/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,5 @@
<div class="navbar-nav d-none d-lg-block">
{{ partial "search-input.html" . }}
</div>
{{- partial "banner.html" . }} <!-- Adds announcements banner under the menu -->
</nav>
Loading