-
Notifications
You must be signed in to change notification settings - Fork 28
Add Announcement Banner per #118 #499
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
Changes from 13 commits
d9e5b3b
13e1ac3
a3c7dfd
689f4e2
6ab801a
67b7aad
9a01a96
40d2b3f
3fb3556
f35d702
abfa52e
086b0b1
13fc85c
8b851b1
8f3d931
bc3311e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| banner_text: Join us for Red Hat Summit & Ansible Fest in Atlanta, GA | May 11-14, 2026 | ||
gundalow marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,2 +1,6 @@ | ||||||||||
| from conf import * | ||||||||||
| URL_TYPE = 'rel_path' | ||||||||||
|
|
||||||||||
| # Update GLOBAL_CONTEXT["BANNER"] to True | ||||||||||
oraNod marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||||||
| GLOBAL_CONTEXT.update({ "BANNER": True, }) | ||||||||||
|
||||||||||
| # Update GLOBAL_CONTEXT["BANNER"] to True | |
| GLOBAL_CONTEXT.update({ "BANNER": True, }) | |
| # Override to display the global banner | |
| # GLOBAL_CONTEXT.update({ "BANNER": True, }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's probably worth commenting this override so the banner is not displayed on subsequent PRs and we don't forget how to update the global context.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| <div class="top-banner" id="top-banner">{{ banner.banner_text }}</div> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| #top-banner { | ||
| top: 0; | ||
| position: sticky; | ||
| padding: 0.75rem 1.25rem; | ||
| text-align: center; | ||
| background-color: $navy; | ||
| color: $white; | ||
| z-index: 9999; | ||
x1101 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| font-size: $font-md; | ||
| line-height: 1.4; | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.