Proper handling of .txt files in sitemaps, sidebar and dir listings.

This commit is contained in:
uriel 2008-09-14 23:31:09 +02:00
parent 759f11fbfa
commit 892bfbfa8b
2 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ fn gentitle {
}
# Don't change var name or trailing ';', some dirs change the filter!
dirfilter = '/\/[._]/d; s,^\./,,; s,\.md$,,; s,\.html,,; '
dirfilter = '/\/[._]/d; /sitemap\.txt/d; s,^\./,,; s,\.md$,,; s,\.html,,; s,\.txt,,; '
# To be used from _config files
fn hide_paths {

View File

@ -21,7 +21,7 @@ fn listDir {
echo ''
if not {
for ( i in `{ ls -d $d/*/ $d/*.md $d/*.html >[2]/dev/null |sed $dirfilter^'/index$/d;' } ) {
for ( i in `{ ls -d $d/*/ $d/*.md $d/*.html $d/*.txt >[2]/dev/null |sed $dirfilter^'/index$/d;' } ) {
desc = ''
if (test -f $i.md) {
desc = `{ getMdDesc $i.md }