aboutsummaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2024-09-05 18:01:13 +0300
committerValentin Popov <valentin@popov.link>2024-09-05 18:01:13 +0300
commit17c3115a0608bb7ef42c8038b36f24b2356004ec (patch)
treefb59e691830155a1b003dca9125fd871bd66176c /src/components
parent7ba2de71480c1b568ed8b7d7f693f17774da1684 (diff)
downloadpopov.link-17c3115a0608bb7ef42c8038b36f24b2356004ec.tar.xz
popov.link-17c3115a0608bb7ef42c8038b36f24b2356004ec.zip
Added basic structure
Diffstat (limited to 'src/components')
-rw-r--r--src/components/Head.astro17
-rw-r--r--src/components/Header.astro14
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>