Fix directory listing
This commit is contained in:
		
							parent
							
								
									bca1393085
								
							
						
					
					
						commit
						0aed92a54d
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -99,7 +99,7 @@ fn genbody { | ||||||
|             if ( ~ $body */index.md ) { |             if ( ~ $body */index.md ) { | ||||||
|                 echo '<h1>' `{basename `{basename -d $body}}'</h1>' |                 echo '<h1>' `{basename `{basename -d $body}}'</h1>' | ||||||
|                 echo '<ul>' |                 echo '<ul>' | ||||||
|                 ls -F `{ basename -d $body } |grep -v '(^.|/_[^/]*$)' | sed -e 's,^./,,' -e 's,\.md$,,' -e 's,^'$sitedir'/([^/]*[/]?)+,<li><a href="\1">\1</a></li>,' |                 ls -F `{ basename -d $body } |grep -v '(^\.|/_[^/]*$)' | sed -e 's,^./,,' -e 's,\.md$,,' -e 's,^'$sitedir'/([^/]*[/]?)+,<li><a href="\1">\1</a></li>,' | ||||||
|                 echo '</ul>' |                 echo '</ul>' | ||||||
|             } |             } | ||||||
|             if not { template.awk inc/404.tpl | rc } |             if not { template.awk inc/404.tpl | rc } | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Kris Maglione
						Kris Maglione