Site map

%{ tmpfile=/tmp/werc_sitemap_$pid.txt tmpfilex=/tmp/werc_sitemapx_$pid.txt saveddf=$dirfilter fn listDir { d=$1 dirfilter=$saveddf if(test -f $d/_werc/config) . ./$d/_werc/config if(~ $#perm_redir_to 0) { echo '' } } fltr_cache listDir $sitedir/ if(test -s $tmpfile) { mv $tmpfile $sitedir/sitemap.txt & } if not if(test -f $tmpfile) rm $tmpfile if(test -s $tmpfilex) { { echo ' ' cat $tmpfilex rm $tmpfilex & echo '' # TODO Enable automaic search engine update notification. #hget 'http://google.com/ping?sitemap='^`{url_encode $base_url'/sitemap.gz'} > /dev/null } | gzip > $sitedir/sitemap.gz & #} > $sitedir/sitemap.xml & } if not if(test -f $tmpfilex) rm $tmpfilex %}