Skip to content

Commit e2a381c

Browse files
authored
Merge pull request #1109 from logto-io/charles-fix-docs-missing-top-navbar
fix: top navbar should be rendered in docs pages
1 parent c91a483 commit e2a381c

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

terms/custom.scss

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
1-
nav.navbar,
2-
footer {
3-
display: none;
4-
}
1+
/**
2+
* The '@docusaurus/plugin-content-blog' plugin id `terms` is set in docusaurus.config.ts
3+
*
4+
* This classname is added to the root element of the html when rendering the terms blog page.
5+
* We use this to distinguish the terms page from other docs pages. And we only hide the
6+
* docusaurus navbar and footer on the terms page, and show a custom topbar instead.
7+
*/
8+
.plugin-id-terms {
9+
nav.navbar,
10+
footer {
11+
display: none;
12+
}
513

6-
header time::before {
7-
content: 'Effective date: ';
14+
header time::before {
15+
content: 'Effective date: ';
16+
}
817
}

0 commit comments

Comments
 (0)