File tree Expand file tree Collapse file tree 6 files changed +59
-0
lines changed Expand file tree Collapse file tree 6 files changed +59
-0
lines changed Original file line number Diff line number Diff line change @@ -63,3 +63,37 @@ assets/scss/_styles_project.scss
6363.tab-body {
6464 padding : 0rem ;
6565}
66+
67+ // Styling for announcement banner
68+ .menu-banner {
69+ @include media-breakpoint-up (md) {
70+ width : 100% ;
71+ position : fixed ;
72+ margin-left : -15px ;
73+ z-index : 31 ;
74+ top : 4rem ;
75+ }
76+
77+ // --td-pre-bg: #{adjust-color($gray-900, $lightness: -2.5%)};
78+ --td-pre-bg : black ;
79+
80+ background : var (--td-pre-bg );
81+ color : var (--bs-body-color );
82+ text-align : center ;
83+ height : 24px ;
84+
85+ & p {
86+ // padding: 0.5rem;
87+ // margin-bottom: initial;
88+ color : white ;
89+ }
90+ }
91+
92+ // Adds a padding because the announcements banner is too close to the breadcrumb
93+ header {
94+ padding-bottom : 8px ;
95+ }
96+ .td-page-meta {
97+ // Adds a margin because the announcements banner is too close
98+ margin-top : 16px ;
99+ }
Original file line number Diff line number Diff line change 1+ ---
2+ title : Announcements
3+ cascade :
4+ type : docs
5+ headless : true
6+ ---
Original file line number Diff line number Diff line change 1+ ---
2+ title : Observability Day North America
3+ expiryDate : 2024-11-15
4+ weight : -1 # top
5+ ---
6+ <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!
Original file line number Diff line number Diff line change 11---
22title : Logging operator
33weight : 400
4+ cascade :
5+ show_banner : true
46---
57
68Welcome to the Logging operator documentation!
Original file line number Diff line number Diff line change 66 < body class ="td-{{ .Kind }}{{ with .Page.Params.body_class }} {{ . }}{{ end }} " {{ with .Page.Params.body_attribute }} {{ . | safeHTMLAttr }}{{ end }} >
77 < header >
88 {{ partial "navbar.html" . }}
9+ {{- partial "banner.html" . }} <!-- Adds announcements banner under the menu -->
910 </ header >
1011 < div class ="container-fluid td-outer ">
1112 < div class ="td-main ">
Original file line number Diff line number Diff line change 1+ {{ if .Params.show_banner -}}
2+ {{ $announcements := site.GetPage "announcements" -}}
3+ {{ if $announcements -}}
4+ < div class ="menu-banner ">
5+ {{ range $announcements.RegularPages }}
6+ < div > {{ .Content }}</ div >
7+ {{ end -}}
8+ </ div >
9+ {{ end -}}
10+ {{ end -}}
You can’t perform that action at this time.
0 commit comments