summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xadd_to_rss.sh2
-rwxr-xr-xformatter.sh2
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/^/<p>/;')
+FILE=$(cat $1|sed -E ':a;N;$!ba; s/\/\/\///g ;s/\//\\\//g ; s/\r{0,1}\n/<\\\/p>/g;s/^/<p>/;')
echo $BASE
sed -i "/<\!--item-->/s/$/\n\<item><pubDate><\/pubDate><guid>https:\/\/b4rkod.net.tr\/$BASE<\/guid><title>$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> \&nbsp \&nbsp /" $1
+sed "/\/\/\//s/$/<\/p>/;/\/\/\//s/\/\//<p> \&nbsp \&nbsp /" $1
printf " </body> <html>"