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

configurable announcement bar #130

Merged
merged 2 commits into from
Nov 13, 2024
Merged
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
7 changes: 5 additions & 2 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ import 'dotenv/config';
// GitHub Settings to setup repository and branch customFields
const vars = require('./variables')

// enable or disable the announcement header bar (see 'announcementBar' section below)
const isAnnouncementActive = false;

/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'Cardano',
Expand Down Expand Up @@ -282,14 +285,14 @@ const config = {
// Announcement Bar
// id: always change it when changing the announcement
// backgroundColor: use #1442B3 for announcements
announcementBar: {
announcementBar: isAnnouncementActive ?{
id: "announcement_index1", // Any value that will identify this message + increment the number every time to be unique
content:
`<strong>Join the Cardano Summit 2024 in Dubai on 23-24 October. ⭐️<a target="_blank" rel="noopener noreferrer" href="https://summit.cardano.org?ref=corg">Get Tickets!</a></strong>`,
backgroundColor: "#1442B3",
textColor: "#FFFFFF", // Use #FFFFFF
isCloseable: true, // Use true
},
}: undefined,

head: [
// ...
Expand Down