commit d249498fd2051c2cf380cd91970f8acc4b4d18bc (patch)
parent 7cc12c563f7492ca083a4e0d18dd985215e15480
Author: alex <alex@garbash.com>
Date: Mon, 2 May 2022 23:31:16 -0400
style: Remove grey box around ascii art logo
This is done by special casing the build of the homepage!
Diffstat:
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/bin/buildpage b/bin/buildpage
@@ -6,7 +6,7 @@ die() {
exit 1
}
-[ -z "$1" ] && die "usage: downtown FILE"
+[ -z "$1" ] && die "usage: buildpage FILE"
# Print the header
cat <<EOM
@@ -30,14 +30,20 @@ footer {
code {
font-family: consolas, courier, monospace;
}
+EOM
+
+if [ "$(basename "$1")" != "root-index.md" ]; then
+ cat <<EOM
blockquote, pre {
background: #f2f2f2;
overflow: auto;
padding: 10px;
border: 2px solid black;
}
-</style>
EOM
+fi
+
+echo "</style>"
# Print the title, if we find it in the frontmatter
if [ "$(head -n1 "$1")" = "---" ]; then