summaryrefslogtreecommitdiff
path: root/examples/blog/src/components/BaseHead.astro
diff options
context:
space:
mode:
authorGravatar Mark Peck <peck.mark@gmail.com> 2023-07-25 09:51:38 -0500
committerGravatar GitHub <noreply@github.com> 2023-07-25 09:51:38 -0500
commit8e14621659e86b4970f2486f13d8c7384f5ff9d9 (patch)
tree26d90d70f01961367bfea9b93c632f73208464e8 /examples/blog/src/components/BaseHead.astro
parent0c1a26adc8ec9d6009dc9062cbe5165f88203d5f (diff)
downloadastro-8e14621659e86b4970f2486f13d8c7384f5ff9d9.tar.gz
astro-8e14621659e86b4970f2486f13d8c7384f5ff9d9.tar.zst
astro-8e14621659e86b4970f2486f13d8c7384f5ff9d9.zip
Blog theme styling updates (#7768)
* whole lotta updates and including some new fonts * update placeholders * fix mobile first child * remove experimental stuff * adding accessible text to header icon links * preloading font files * i did dum things --------- Co-authored-by: Tony Sullivan <tony.f.sullivan@outlook.com>
Diffstat (limited to 'examples/blog/src/components/BaseHead.astro')
-rw-r--r--examples/blog/src/components/BaseHead.astro6
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/blog/src/components/BaseHead.astro b/examples/blog/src/components/BaseHead.astro
index e11d11149..344124012 100644
--- a/examples/blog/src/components/BaseHead.astro
+++ b/examples/blog/src/components/BaseHead.astro
@@ -11,7 +11,7 @@ interface Props {
const canonicalURL = new URL(Astro.url.pathname, Astro.site);
-const { title, description, image = '/placeholder-social.jpg' } = Astro.props;
+const { title, description, image = '/blog-placeholder-1.jpg' } = Astro.props;
---
<!-- Global Metadata -->
@@ -20,6 +20,10 @@ const { title, description, image = '/placeholder-social.jpg' } = Astro.props;
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="generator" content={Astro.generator} />
+<!-- Font preloads -->
+<link rel="preload" href="/fonts/atkinson-regular.woff" as="font" type="font/woff" crossorigin />
+<link rel="preload" href="/fonts/atkinson-bold.woff" as="font" type="font/woff" crossorigin />
+
<!-- Canonical URL -->
<link rel="canonical" href={canonicalURL} />