Proper handling of .txt files in sitemaps, sidebar and dir listings.
This commit is contained in:
parent
759f11fbfa
commit
892bfbfa8b
@ -50,7 +50,7 @@ fn gentitle {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Don't change var name or trailing ';', some dirs change the filter!
|
# 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
|
# To be used from _config files
|
||||||
fn hide_paths {
|
fn hide_paths {
|
||||||
|
@ -21,7 +21,7 @@ fn listDir {
|
|||||||
echo ''
|
echo ''
|
||||||
if not {
|
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 = ''
|
desc = ''
|
||||||
if (test -f $i.md) {
|
if (test -f $i.md) {
|
||||||
desc = `{ getMdDesc $i.md }
|
desc = `{ getMdDesc $i.md }
|
||||||
|
Loading…
Reference in New Issue
Block a user