feat: first commit
This commit is contained in:
		
							
								
								
									
										21
									
								
								sitemap/sitemap.xml.njk
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								sitemap/sitemap.xml.njk
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,21 @@
 | 
			
		||||
---
 | 
			
		||||
permalink: /sitemap.xml
 | 
			
		||||
eleventyExcludeFromCollections: true
 | 
			
		||||
---
 | 
			
		||||
<?xml version="1.0" encoding="utf-8"?>
 | 
			
		||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml">
 | 
			
		||||
{%- for page in collections.all %}
 | 
			
		||||
  {% set absoluteUrl %}{{ page.url | htmlBaseUrl(metadata.url) }}{% endset %}
 | 
			
		||||
  <url>
 | 
			
		||||
    <loc>{{ absoluteUrl }}</loc>
 | 
			
		||||
    <lastmod>{{ page.date | htmlDateString }}</lastmod>
 | 
			
		||||
    {%- set alternateUrls = page.url | locale_links %}
 | 
			
		||||
    {%- if alternateUrls.length %}
 | 
			
		||||
    <xhtml:link rel="alternate" hreflang="{{ page.data.page.lang }}" href="{{ absoluteUrl }}"/>
 | 
			
		||||
    {%- for link in alternateUrls %}
 | 
			
		||||
    <xhtml:link rel="alternate" hreflang="{{ link.lang }}" href="{{ link.url | htmlBaseUrl(metadata.url) }}"/>
 | 
			
		||||
    {%- endfor %}
 | 
			
		||||
    {%- endif %}
 | 
			
		||||
  </url>
 | 
			
		||||
{%- endfor %}
 | 
			
		||||
</urlset>
 | 
			
		||||
		Reference in New Issue
	
	Block a user