summaryrefslogtreecommitdiff
path: root/docs/src/config.ts
diff options
context:
space:
mode:
authorGravatar Caleb Jasik <calebjasik@jasik.xyz> 2021-07-20 21:52:26 -0500
committerGravatar GitHub <noreply@github.com> 2021-07-20 21:52:26 -0500
commit2a7654edf30a418f33d47fd5117965efa95cb6d0 (patch)
treeba7401b8cf79499d8237ef480b5680f2e22897b6 /docs/src/config.ts
parent8eeb6b4fe8e116f34a2058891d180dbb6fbcdc29 (diff)
downloadastro-2a7654edf30a418f33d47fd5117965efa95cb6d0.tar.gz
astro-2a7654edf30a418f33d47fd5117965efa95cb6d0.tar.zst
astro-2a7654edf30a418f33d47fd5117965efa95cb6d0.zip
Docs/ Add MetaData component for Open Graph and Twitter embeds (#784)
* Docs/ Add MetaData component for Open Graph and Twitter embeds * Switch twitter card type to `summary_large_image` * Add a version tag to the default-og-image url for cache busting * Update docs/src/config.ts Co-authored-by: Fred K. Schott <fkschott@gmail.com> * Incorporate changes from review * Construct `canonicalImageSrc` from `Astro.site`, which is not useful now, but could be if #788 is implemented Co-authored-by: Fred K. Schott <fkschott@gmail.com>
Diffstat (limited to 'docs/src/config.ts')
-rw-r--r--docs/src/config.ts12
1 files changed, 12 insertions, 0 deletions
diff --git a/docs/src/config.ts b/docs/src/config.ts
index b24b5c499..a9f5258f9 100644
--- a/docs/src/config.ts
+++ b/docs/src/config.ts
@@ -70,4 +70,16 @@ export const sidebar = [
export const site = {
title: 'Astro Documentation',
+ description: 'Build faster websites with less client-side Javascript',
+ ogLocale: 'en_US',
+ image: {
+ src: '/default-og-image.png?v=1',
+ alt:
+ 'astro logo on a starry expanse of space,' +
+ ' with a purple saturn-like planet floating in the right foreground',
+ },
+ twitter: {
+ site: 'astrodotbuild',
+ creator: 'astrodotbuild',
+ },
};