diff options
author | 2022-01-24 23:35:19 +0800 | |
---|---|---|
committer | 2022-01-24 10:35:19 -0500 | |
commit | 9757cd869ba097367c34b0a937b717be5a681244 (patch) | |
tree | bc8d5bafdb9aeb5a998057c6a9ee1867c4237d3b /examples/docs/src/components/Header/Header.astro | |
parent | 20dc304172f8d5d6b289ea4b34b64684fb612836 (diff) | |
download | astro-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.astro | 2 |
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> |