hlxsites / prisma-cloud-docs-website

blocks and gdoc authored content for https://docs.prismacloud.io
Apache License 2.0
3 stars 2 forks source link

Add optional announcement banner #243

Closed iansk closed 1 month ago

iansk commented 1 month ago

Add the ability to show an optional announcement banner at the top of any page. The banner is configurable via the metadata sheet.

In the metadata sheet, there's an announcement column. If the page being rendered has an announcement (an HTML string), the string is taken from the metadata and rendered in a red box at the top of the page.

There aren't many configuration options for announcements yet. The goal was to get this out as quickly as possible because we have old pages that customers still mistakenly reference, but which PM isn't ready to pull down yet. We want to able to quickly redirect customers to the right place.

Fix #

Test URLs:

aem-code-sync[bot] commented 1 month ago

Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch and validate page speed. In case there are problems, just click a checkbox below to rerun the respective action.

Commits * [1ef8cc9](https://github.com/hlxsites/prisma-cloud-docs-website/commit/1ef8cc9dd7dc0fe62d729db04cae95909759a0ff) :white_check_mark: (latest)
aem-code-sync[bot] commented 1 month ago
Page Scores Audits Google
/ PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI