From 69bacbf80fa283054f90afe2c93db95d2fc557c9 Mon Sep 17 00:00:00 2001 From: b4rkod Date: Tue, 21 Nov 2023 23:00:17 +0300 Subject: test --- add_to_rss.sh | 2 +- formatter.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/add_to_rss.sh b/add_to_rss.sh index d1e5da7..0c4e0b3 100755 --- a/add_to_rss.sh +++ b/add_to_rss.sh @@ -1,5 +1,5 @@ BASE=$(basename $1|sed s/txt$/html/) -FILE=$(cat $1|sed -E ':a;N;$!ba; s/\//\\\//g ; s/\r{0,1}\n/<\\\/p>/g;s/^/

/;') +FILE=$(cat $1|sed -E ':a;N;$!ba; s/\/\/\///g ;s/\//\\\//g ; s/\r{0,1}\n/<\\\/p>/g;s/^/

/;') echo $BASE sed -i "/<\!--item-->/s/$/\n\<\/pubDate>https:\/\/b4rkod.net.tr\/$BASE<\/guid>$BASE<\/title><link>https:\/\/b4rkod.net.tr\/blogposts\/$BASE<\/link><description><![CDATA[$FILE]]><\/description><\/item>/" "$HOME/www/source/rss.xml" diff --git a/formatter.sh b/formatter.sh index 9c78a1a..a249951 100755 --- a/formatter.sh +++ b/formatter.sh @@ -3,5 +3,5 @@ printf "<link rel="icon" type="image/png" sizes="32x32" href="/etc/favicon-32x32 printf "<div id="menu" >\n <a href="/index.html" >Main</a>\n <a href="/index.html#blogposts" >Blogposts</a>\n <a href="/index.html#contents" >Contents</a>\n <a href="files/files.html" >Library</a> \n <a href="https://git.b4rkod.net.tr" >git</a>\n <a href="https://b4rkod.net.tr/rss.xml" >RSS</a> <a href="https://b4rkod.net.tr/#webrings" >webrings</a></div>\n " printf "<p> date : $(stat -c '%w' $1| cut -d " " -f 1)\n " -sed "/\/\//s/$/<\/p>/;/\/\//s/\/\//<p> \  \  /" $1 +sed "/\/\/\//s/$/<\/p>/;/\/\/\//s/\/\//<p> \  \  /" $1 printf " </body> <html>" -- cgit v1.2.3