new genblog script, remove old gen scripts new blog layout

This commit is contained in:
2023-07-15 04:41:40 -04:00
parent 224a8f7594
commit 81e150fbd8
7 changed files with 98 additions and 73 deletions

View File

@ -3,6 +3,21 @@
read -p "Enter name of blog: " name
filename="$(echo $name | sed 's/ /-/g').html"
printf "<title>$name</title>\n<link rel="stylesheet" href="style.css">\n<body>\n<p>\n</p>\n</body>" > $filename
# make sure we don't overwrite an existent file
[ -f $filename ] &&
printf "File already exists! Please choose a different filename.\n"; exit 1
printf '<!DOCTYPE HTML>
<html lang="en">
<meta name="date" content="2023/07/15"><title>'$name'</title>
<link rel=stylesheet href=style.css>
<body style="background-color: #161617;">
<p>
</p>
</body>
</html>
' > $filename
$EDITOR $filename
echo "Make sure to run sup to add to rss feed!"