lb

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

commit 5591375acdb887b3adca7f4ccd88a3a74dc9b836
parent a4cbf4242db911fe5c1f3a2b245677762edee075
Author: Luke Smith <luke@lukesmith.xyz>
Date:   Sat, 19 May 2018 13:51:08 -0700

authorname added to footer of standalone

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

diff --git a/lb b/lb @@ -5,6 +5,7 @@ rssfile="rss.xml" blogfile="2018.html" website="https://lukesmith.xyz/" stylesheet="..\/style.css" # Characters should be escaped for this variable. +author="<a href=\"$website\">Luke Smith<\/a>" dir=$(pwd) # See other variables defined later, such as `header` and `webdate` for more customizability. @@ -47,7 +48,7 @@ finalize() { \ sed -i "/<!-- LB -->/r $tmpdir/html.html" $blogfile sed -i "/<!-- LB -->/r $tmpdir/rss.xml" $rssfile header="<html>\n<head>\n<title>$title<\/title>\n<link rel='stylesheet type='text\/css' href='$stylesheet'>\n<meta charset='utf-8'\/>\n<\/head>\n<body>" - footer="<\/body>\n<\/html>" + footer="<div=\"footer\">by <b>$author<\/b><\/div><\/body>\n<\/html>" sed "0,/^/s//$header/;0,/<h2 id=/s//<h1 id=/;0,/h2>/s//h1>/;\$a$footer" $dir/blog/.drafts/$chosen > $dir/blog/$chosen rm $dir/blog/.drafts/$chosen }