Skip to content

Commit afd568a

Browse files
Aryamanz29claude
andcommitted
docs: hide auto-generated 'Home' heading on homepage
MkDocs renders a <h1>Home</h1> when no H1 exists in the markdown. Use CSS :has(.homepage-hero) to target and hide it only on the homepage. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 05dca57 commit afd568a

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

docs/assets/stylesheets/extra.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@
1616
--md-accent-fg-color: #5DD4F5;
1717
}
1818

19+
/* Hide auto-generated 'Home' h1 on homepage — logo already shows the name */
20+
.md-content__inner:has(.homepage-hero) > h1 {
21+
display: none;
22+
}
23+
1924
/* Hide site name text — logo already contains the name */
2025
.md-header__title {
2126
display: none;

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ hide:
44
- toc
55
---
66

7-
<div align="center" markdown>
7+
<div class="homepage-hero" align="center" markdown>
88

99
![pyatlan logo](assets/logo.png){ width="260" }
1010

0 commit comments

Comments
 (0)