lb

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 52fc28c6261036d9992ce16c07b85906332e6976
parent 329d1c3cf92a8c0a8f7421bf7236ece56d1b8ceb
Author: Luke Smith <luke@lukesmith.xyz>
Date:   Wed, 18 Jul 2018 17:46:00 -0400

minor fix

Diffstat:
Mlb | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lb b/lb @@ -43,7 +43,7 @@ finalize() { \ rssdate=$(date '+%a, %d %b %Y %H:%M:%S %z') webdate=$(date '+%a, %d %b %Y %H:%M:%S %z') tmpdir=$(mktemp -d) - echo -e "\n<item>\n<title>$title</title>\n<guid>$website$blogfile#$url</guid>\n<pubDate>$rssdate</pubDate>\n<description><![CDATA[\n$(cat $dir/blog/.drafts/$chosen)\n]]></description>\n</item>\n"> $tmpdir/rss.xml + echo -e "\n<item>\n<title>$title</title>\n<guid>$website$blogfile#$url</guid>\n<pubDate>$rssdate</pubDate>\n<description><![CDATA[\n$(cat $dir/blog/.drafts/$chosen | awk 'a==1;/^$/{a=1}')\n]]></description>\n</item>\n"> $tmpdir/rss.xml echo -e "\n<div class=\"entry\">\n$(cat $dir/blog/.drafts/$chosen)\n<small>$webdate</small>\n</div>\n" > $tmpdir/html.html sed -i "/<!-- LB -->/r $tmpdir/html.html" $blogfile sed -i "/<!-- LB -->/r $tmpdir/rss.xml" $rssfile