Add trailing / for directories in sitemap to make google crawler happy
This commit is contained in:
		
							parent
							
								
									818379cf80
								
							
						
					
					
						commit
						e78e2d2c73
					
				
					 1 changed files with 5 additions and 2 deletions
				
			
		|  | @ -42,9 +42,12 @@ fn listDir { | |||
|             desc = ' - '$"desc | ||||
|         tit = `{basename $i|sed 's/_/ /g'} | ||||
|         echo '<li><a style="text-transform: capitalize" href="/'$i'">'^$"tit^'</a>' $desc '</li>'  | ||||
|         echo $baseuri^$i >> $tmpfile | ||||
|         if (test -d $i) | ||||
|         echo -n $baseuri^$i >> $tmpfile | ||||
|         if (test -d $i) { | ||||
|             echo / >> $tmpfile	 | ||||
|             @{ listDir $i } | ||||
|         } | ||||
|         if not echo >> $tmpfile | ||||
|     } | ||||
|     } | ||||
|     echo '</ul>' | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Uriel
						Uriel