New sitemap generator in rc that also includes .html files
This commit is contained in:
parent
26a405b69e
commit
1ebac62918
6
bin/gensitemaptxt.rc
Executable file
6
bin/gensitemaptxt.rc
Executable file
@ -0,0 +1,6 @@
|
||||
#!/bin/rc
|
||||
for ( d in sites/*/ ) {
|
||||
|
||||
du -a $d | awk '/\.(md|html)$/ { print $2 }; {}' | 9 sed -e 's/\.(md|html)$//' -e 's,/index$,/,' -e 's,^sites/,http://,' > $d/sitemap.txt
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user