aboutsummaryrefslogtreecommitdiff
path: root/examples/docs/src/components/Header/Header.astro
diff options
context:
space:
mode:
authorGravatar Ben Holmes <hey@bholmes.dev> 2023-01-18 08:43:58 -0500
committerGravatar GitHub <noreply@github.com> 2023-01-18 08:43:58 -0500
commit7d72aeeae8c867af2ae6c018611e39c184f50619 (patch)
tree93015c571dc820db3e37e8eba93455014a048d7e /examples/docs/src/components/Header/Header.astro
parent006405d33c2b8eb1307cb84161659428e43efa51 (diff)
downloadastro-7d72aeeae8c867af2ae6c018611e39c184f50619.tar.gz
astro-7d72aeeae8c867af2ae6c018611e39c184f50619.tar.zst
astro-7d72aeeae8c867af2ae6c018611e39c184f50619.zip
Migrate blog and docs starters to content collections (#5858)
* docs: update README for `content/` * chore: update env * feat: update blog to use content collections * chore: remove with-content starter * fix: single quotes -> double * feat: update docs starter to content collections * refactor: config -> consts * chore: import type * edit: Astro will -> Use Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * chore: remove unused null check * nit: spacing * nit: `as Props` 1 Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com> * nit: `as Props` 2 Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com> * chore: consistent CONSTS usage * chore: `type` imports at top * chore: consistent quote usage on YAML * chore: remove `as Props` from docs Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Diffstat (limited to 'examples/docs/src/components/Header/Header.astro')
-rw-r--r--examples/docs/src/components/Header/Header.astro6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/docs/src/components/Header/Header.astro b/examples/docs/src/components/Header/Header.astro
index 58fe46ee9..3f578480b 100644
--- a/examples/docs/src/components/Header/Header.astro
+++ b/examples/docs/src/components/Header/Header.astro
@@ -1,6 +1,6 @@
---
import { getLanguageFromURL, KNOWN_LANGUAGE_CODES } from '../../languages';
-import * as CONFIG from '../../config';
+import { SITE } from '../../consts';
import AstroLogo from './AstroLogo.astro';
import SkipToContent from './SkipToContent.astro';
import SidebarToggle from './SidebarToggle';
@@ -11,7 +11,7 @@ type Props = {
currentPage: string;
};
-const { currentPage } = Astro.props as Props;
+const { currentPage } = Astro.props;
const lang = getLanguageFromURL(currentPage);
---
@@ -24,7 +24,7 @@ const lang = getLanguageFromURL(currentPage);
<div class="logo flex">
<a href="/">
<AstroLogo size={40} />
- <h1>{CONFIG.SITE.title ?? 'Documentation'}</h1>
+ <h1>{SITE.title ?? 'Documentation'}</h1>
</a>
</div>
<div style="flex-grow: 1;"></div>