mirror of
				https://github.com/valentineus/popov.link.git
				synced 2025-11-04 14:59:45 +03:00 
			
		
		
		
	Added canonical URL
This commit is contained in:
		
							
								
								
									
										5
									
								
								src/components/CanonicalURL.astro
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								src/components/CanonicalURL.astro
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,5 @@
 | 
			
		||||
---
 | 
			
		||||
const canonicalURL = new URL(Astro.url.pathname, Astro.site);
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
<link href={canonicalURL} rel="canonical" />
 | 
			
		||||
@@ -1,5 +1,5 @@
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
import CanonicalURL from "../components/CanonicalURL.astro";
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
<html>
 | 
			
		||||
@@ -18,7 +18,7 @@
 | 
			
		||||
		<link href="#" rel="alternate" title="RSS" type="application/atom+xml" />
 | 
			
		||||
 | 
			
		||||
		<!-- Canonical URL -->
 | 
			
		||||
		<link href="#" rel="canonical" />
 | 
			
		||||
		<CanonicalURL />
 | 
			
		||||
	</head>
 | 
			
		||||
 | 
			
		||||
	<body>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user