mirror of
				https://github.com/Wonderfall/hugo-WonderMod.git
				synced 2025-10-31 03:45:24 +01:00 
			
		
		
		
	layouts: add robots.txt
used when enableRobotsTXT: true https://gohugo.io/templates/robots/
This commit is contained in:
		
							
								
								
									
										7
									
								
								layouts/robots.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								layouts/robots.txt
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,7 @@ | |||||||
|  | User-agent: * | ||||||
|  | {{- if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }} | ||||||
|  | Disallow: | ||||||
|  | {{- else }} | ||||||
|  | Disallow: / | ||||||
|  | {{- end }} | ||||||
|  | Sitemap: {{ "sitemap.xml" | absURL }} | ||||||
		Reference in New Issue
	
	Block a user
	 Aditya Telange
					Aditya Telange