mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-06 21:03:47 +02:00
feat(v2): add announcement bar (#2330)
* feat(v2): add announcement bar * Refactor: move to Layout * Fixes * Refactor to simplify * Changes: id, styles, docs
This commit is contained in:
parent
c3aa162ea5
commit
0f73a1fad8
7 changed files with 152 additions and 4 deletions
|
@ -13,6 +13,7 @@ import useBaseUrl from '@docusaurus/useBaseUrl';
|
|||
|
||||
import ThemeProvider from '@theme/ThemeProvider';
|
||||
import TabGroupChoiceProvider from '@theme/TabGroupChoiceProvider';
|
||||
import AnnouncementBar from '@theme/AnnouncementBar';
|
||||
import Navbar from '@theme/Navbar';
|
||||
import Footer from '@theme/Footer';
|
||||
|
||||
|
@ -76,6 +77,7 @@ function Layout(props) {
|
|||
)}
|
||||
<meta name="twitter:card" content="summary_large_image" />
|
||||
</Head>
|
||||
<AnnouncementBar />
|
||||
<Navbar />
|
||||
<div className="main-wrapper">{children}</div>
|
||||
{!noFooter && <Footer />}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue