mirror of
				https://github.com/valentineus/popov.link.git
				synced 2025-11-03 22:39:44 +03:00 
			
		
		
		
	Added basic structure
This commit is contained in:
		
							
								
								
									
										17
									
								
								src/components/Head.astro
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								src/components/Head.astro
									
									
									
									
									
										Normal file
									
								
							@@ -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>
 | 
				
			||||||
							
								
								
									
										14
									
								
								src/components/Header.astro
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								src/components/Header.astro
									
									
									
									
									
										Normal file
									
								
							@@ -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>
 | 
				
			||||||
@@ -1,27 +1,15 @@
 | 
				
			|||||||
---
 | 
					---
 | 
				
			||||||
import CanonicalURL from "../components/CanonicalURL.astro";
 | 
					import Head from "../components/Head.astro";
 | 
				
			||||||
 | 
					import Header from "../components/Header.astro";
 | 
				
			||||||
---
 | 
					---
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<html>
 | 
					<html>
 | 
				
			||||||
	<head>
 | 
						<Head />
 | 
				
			||||||
		<!-- Meta tags -->
 | 
					 | 
				
			||||||
		<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" />
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
		<!-- Title / Description -->
 | 
					 | 
				
			||||||
		<meta content="Description" name="description" />
 | 
					 | 
				
			||||||
		<title>Title</title>
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
		<!-- RSS -->
 | 
					 | 
				
			||||||
		<link href="#" rel="alternate" title="RSS" type="application/atom+xml" />
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
		<!-- Canonical URL -->
 | 
					 | 
				
			||||||
		<CanonicalURL />
 | 
					 | 
				
			||||||
	</head>
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
	<body>
 | 
						<body>
 | 
				
			||||||
 | 
							<Header />
 | 
				
			||||||
 | 
							<article>
 | 
				
			||||||
			<slot />
 | 
								<slot />
 | 
				
			||||||
 | 
							</article>
 | 
				
			||||||
	</body>
 | 
						</body>
 | 
				
			||||||
</html>
 | 
					</html>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -2,6 +2,23 @@
 | 
				
			|||||||
import BaseLayout from "../layouts/BaseLayout.astro";
 | 
					import BaseLayout from "../layouts/BaseLayout.astro";
 | 
				
			||||||
---
 | 
					---
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					<style>
 | 
				
			||||||
 | 
						.header {
 | 
				
			||||||
 | 
							text-align: center;
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					</style>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<BaseLayout>
 | 
					<BaseLayout>
 | 
				
			||||||
 | 
						<div class="header">
 | 
				
			||||||
 | 
							<h1>Title</h1>
 | 
				
			||||||
 | 
							<p>
 | 
				
			||||||
 | 
								<small>
 | 
				
			||||||
 | 
									Posted
 | 
				
			||||||
 | 
									<time datetime="#">#</time>
 | 
				
			||||||
 | 
									 by Valentin Popov ‐
 | 
				
			||||||
 | 
									<strong>1 min read</strong>
 | 
				
			||||||
 | 
								</small>
 | 
				
			||||||
 | 
							</p>
 | 
				
			||||||
 | 
						</div>
 | 
				
			||||||
	<slot />
 | 
						<slot />
 | 
				
			||||||
</BaseLayout>
 | 
					</BaseLayout>
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user