diff options
Diffstat (limited to 'src/components')
-rw-r--r-- | src/components/Head.astro | 17 | ||||
-rw-r--r-- | src/components/Header.astro | 14 |
2 files changed, 31 insertions, 0 deletions
diff --git a/src/components/Head.astro b/src/components/Head.astro new file mode 100644 index 0000000..bc5609f --- /dev/null +++ b/src/components/Head.astro @@ -0,0 +1,17 @@ +--- +const canonicalURL = new URL(Astro.url.pathname, Astro.site); +--- + +<head> + <meta content="IE=edge" http-equiv="X-UA-Compatible" /> + <meta content="text/html; charset=utf-8" http-equiv="content-type" /> + <meta content="width=device-width, initial-scale=1" name="viewport" /> + <meta content="index, follow" name="robots" /> + <meta content="Description" name="description" /> + + <link href="/feed.xml" rel="alternate" title="RSS" type="application/atom+xml" /> + <link href="/sitemap-index.xml" rel="sitemap" /> + <link href={canonicalURL} rel="canonical" /> + + <title>Title</title> +</head> diff --git a/src/components/Header.astro b/src/components/Header.astro new file mode 100644 index 0000000..5b35d8a --- /dev/null +++ b/src/components/Header.astro @@ -0,0 +1,14 @@ +--- + +--- + +<header> + <nav> + <a href="/">Home</a> + <a href="/blog/">Blog</a> + <span> + <span>|</span> + <a href="/feed.xml">RSS</a> + </span> + </nav> +</header> |