New sitemap generator in rc that also includes .html files
This commit is contained in:
parent
4bb96ddf8b
commit
23b7d15fd3
1 changed files with 6 additions and 0 deletions
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…
Add table
Add a link
Reference in a new issue