Skip to content

Commit 1075e26

Browse files
feat: add custom CSS to hide redundant site name text in header and navigation
1 parent 8fe9430 commit 1075e26

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

docs/assets/extra.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/* Hide the site name text next to the logo — logo already contains the name */
2+
.md-header__title {
3+
display: none !important;
4+
}
5+
6+
/* Also hide in the breadcrumb / nav title area */
7+
.md-ellipsis {
8+
display: none !important;
9+
}

mkdocs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ theme:
3939
plugins:
4040
- search
4141

42+
extra_css:
43+
- assets/extra.css
44+
4245
markdown_extensions:
4346
- admonition
4447
- pymdownx.highlight:

0 commit comments

Comments
 (0)