summaryrefslogtreecommitdiffstats
path: root/blog
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--blog.html37
-rwxr-xr-xblog/newblog17
2 files changed, 35 insertions, 19 deletions
diff --git a/blog.html b/blog.html
index 95c4af2..f9cd986 100644
--- a/blog.html
+++ b/blog.html
@@ -7,32 +7,33 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<style type="text/css">
- p {
- font-size: 2.5vw;
+ #bloglist {
+ text-align: left;
+ font-size: 2ch;
}
- #date {
- font-size: 1.5vw;
+ p#bloglist span {
float: right;
color: white;
}
- #svg {
- display: block;
- margin-left: auto;
- margin-right: auto;
- width: 50%;
- max-height: 1.5em;
- max-width: 1.5em;
- }
</style>
- <body>
- <div class="master">
+ <body style="background-color: #161617;">
+ <div id="master">
<header>
- <h1 id="font"><a href="https://squi.bid">Squibid's</a> Blog</h1>
+ <h1 id="font", style="margin-bottom: 0">
+ <a href="https://squi.bid">Squibid's</a> Blog
+ </h1>
</header>
<hr style="color: #f7f7f7;">
- <p> <!-- script marker blog -->
- </p> <!-- script marker blog -->
- <a href="https://squi.bid/blog/rss.xml"><img id="svg" src="pics/rss.svg" alt="rss feed"></a>
+ <p id="bloglist">
+ <!-- b script marker blog -->
+<a href="/blog/librex-and-dots"> librex and dots</a><span>2023/06/27</span><br>
+<a href="/blog/It's-Alive!"> It's Alive!</a><span>2023/05/01</span><br>
+<a href="/blog/state-of-the-site"> state of the site</a><span>2023/03/11</span><br>
+ <!-- e script marker blog -->
+ </p>
+ <h2 id="font" style="text-align: center; margin-top: 0;">
+ <a href="/blog/rss.xml", title="rss">subscribe</a>
+ </h2>
</div>
</body>
</html>
diff --git a/blog/newblog b/blog/newblog
index da0def9..2cd5ca3 100755
--- a/blog/newblog
+++ b/blog/newblog
@@ -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!"