mirror of
				https://github.com/valentineus/popov.link.git
				synced 2025-11-04 06:49:45 +03:00 
			
		
		
		
	Flexible exception list
Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
		
							
								
								
									
										1
									
								
								_data/robots_disallow.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								_data/robots_disallow.yml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1 @@
 | 
				
			|||||||
 | 
					- path: "/404.html"
 | 
				
			||||||
@@ -5,6 +5,9 @@ layout: null
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
User-agent: *
 | 
					User-agent: *
 | 
				
			||||||
Allow: {{ site.baseurl | relative_url | uri_escape }}
 | 
					Allow: {{ site.baseurl | relative_url | uri_escape }}
 | 
				
			||||||
Disallow: {{ "/404.html" | relative_url | uri_escape }}
 | 
					
 | 
				
			||||||
 | 
					{% for link in site.data.robots_disallow %}
 | 
				
			||||||
 | 
					  Disallow: {{ link.path | relative_url | uri_escape }}
 | 
				
			||||||
 | 
					{% endfor %}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Sitemap: {{ "sitemap.xml" | absolute_url | uri_escape }}
 | 
					Sitemap: {{ "sitemap.xml" | absolute_url | uri_escape }}
 | 
				
			||||||
		Reference in New Issue
	
	Block a user