aboutsummaryrefslogtreecommitdiff
path: root/examples/docs/src/components/Header/Header.astro
diff options
context:
space:
mode:
authorGravatar Jang Rush <weakish@gmail.com> 2022-01-24 23:35:19 +0800
committerGravatar GitHub <noreply@github.com> 2022-01-24 10:35:19 -0500
commit9757cd869ba097367c34b0a937b717be5a681244 (patch)
treebc8d5bafdb9aeb5a998057c6a9ee1867c4237d3b /examples/docs/src/components/Header/Header.astro
parent20dc304172f8d5d6b289ea4b34b64684fb612836 (diff)
downloadastro-9757cd869ba097367c34b0a937b717be5a681244.tar.gz
astro-9757cd869ba097367c34b0a937b717be5a681244.tar.zst
astro-9757cd869ba097367c34b0a937b717be5a681244.zip
Use CONFIG.SITE.title for h1 in doc theme header (#2449)
Use SITE.title specified in config.ts as the h1 heading in Header.astro of doc theme. When SITE.title is null, use "Documentation" as the fallback value. Previously the h1 heading in doc theme header is hardcoded as "Documentation".
Diffstat (limited to 'examples/docs/src/components/Header/Header.astro')
-rw-r--r--examples/docs/src/components/Header/Header.astro2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/docs/src/components/Header/Header.astro b/examples/docs/src/components/Header/Header.astro
index 46677b481..7dcbb987d 100644
--- a/examples/docs/src/components/Header/Header.astro
+++ b/examples/docs/src/components/Header/Header.astro
@@ -20,7 +20,7 @@ const lang = currentPage && getLanguageFromURL(currentPage);
<div class="logo flex">
<AstroLogo size={40} />
<a href="/">
- <h1>Documentation</h1>
+ <h1>{CONFIG.SITE.title ?? "Documentation"}</h1>
</a>
</div>
<div style="flex-grow: 1;"></div>