mirror of https://git.envs.net/envs/burrow.git
generate rss feed with burrow rss
This commit is contained in:
parent
43e903bbb6
commit
f49be1126e
3
burrow
3
burrow
|
@ -436,9 +436,6 @@ function make_rss {
|
|||
echo " <link>gopher://${config_gopher_server}/0${config_gopher_root}${config_dir_phlog}/${filename}</link>"
|
||||
echo " <pubdate>$(date -R --date="${date}")</pubdate>"
|
||||
echo " <description><![CDATA[<pre>"
|
||||
# TODO: add test for gophermap or not
|
||||
# if gophermap, remove formatting from "i" types
|
||||
# TODO: reconstruct normal URLs from type 0 and 1 links
|
||||
if grep -q "gophermap$" <<< $filename
|
||||
then
|
||||
awk -F"\t" '/^[2-9h\+GIThs].*\t/ {print $0; next} /^[0-1].*\t/ { l=substr($1, 2, length($1)); t=substr($1,1,1); print l "\n gopher://" $3 "/" t $2; next } {sub(/^i/, "", $1);print $1}' "$f"
|
||||
|
|
Loading…
Reference in New Issue