Proper handling of .txt files in sitemaps, sidebar and dir listings.
This commit is contained in:
parent
de5898ddde
commit
eade40776a
2 changed files with 2 additions and 2 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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 }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue