Feed entries are now marked in bold instead of cursive.

Also removed the [0] after updated feed titles.
This commit is contained in:
Daniel Mowitz 2021-10-20 10:54:07 +02:00
parent d8cf74a65e
commit a0f299be21

View file

@ -29,7 +29,7 @@ do
if [ "$time" -gt "$curr" ] if [ "$time" -gt "$curr" ]
then then
news=$(($news + 1)) news=$(($news + 1))
lines+=("$(echo $line | sed -e 's/^\( *\)- *\(.*\)$/\1- \*\2\*/')") lines+=("$(echo $line | sed -e 's/^\( *\)- *\(.*\)$/\1- \*\*\2\*\*/')")
else else
lines+=("$line") lines+=("$line")
fi fi
@ -37,7 +37,7 @@ done < $file
if [ "$news" -gt "0" ] if [ "$news" -gt "0" ]
then then
lines[0]=`echo "$lines[0]" | sed -e "s/^#\(#*\) *\(.*\)$/#\1 \*\2 ($news)\*/"` lines[0]=`echo "$lines" | sed -e "s/^#\(#*\) *\(.*\)$/#\1 \*\*\2 ($news)\*\*/"`
fi fi
for line in "${lines[@]}" for line in "${lines[@]}"