From a274350addf9589376992a690be5c2adb1ad9635 Mon Sep 17 00:00:00 2001 From: Balakrishnan Balasubramanian Date: Fri, 17 Mar 2023 19:08:03 -0400 Subject: [PATCH] Add stuff page --- Makefile | 5 +++++ build.sh | 10 ++++++++++ pages/stuff.md | 33 +++++++++++++++++++++++++++++++++ templates/index.tmpl.html | 17 ++++++++++------- 4 files changed, 58 insertions(+), 7 deletions(-) create mode 100644 pages/stuff.md diff --git a/Makefile b/Makefile index 059ca04..a67a2d6 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,9 @@ +.PHONY: update-bootstrap update-bootstrap: curl -L "https://cdn.jsdelivr.net/npm/bootstrap@5/dist/css/bootstrap.min.css" -o assets/bootstrap.min.css curl -L "https://cdn.jsdelivr.net/npm/bootstrap@5/dist/js/bootstrap.min.js" -o assets/bootstrap.min.js + +.PHONY: build +build: + ./build.sh diff --git a/build.sh b/build.sh index 509483d..b6b1b86 100755 --- a/build.sh +++ b/build.sh @@ -12,3 +12,13 @@ make_index() { } make_index + +make_stuff() { + cp templates/index.tmpl.html build/stuff.html + sed -i 's//&Stuff/' build/stuff.html + pandoc pages/stuff.md > build/stuff-content.html + sed -i '/<main>/r build/stuff-content.html' build/stuff.html + cp build/stuff.html dist/ +} + +make_stuff diff --git a/pages/stuff.md b/pages/stuff.md new file mode 100644 index 0000000..98c0186 --- /dev/null +++ b/pages/stuff.md @@ -0,0 +1,33 @@ +# Some cool stuff I built + +## vimtabdiff + +Simple python script to see diff off two directories with diff of each file in a vim tab. Typically used to replace `git difftool` + +<div class="table"> ++---------+-------------------------------------------+ +| Project | vimtabdiff | ++---------+-------------------------------------------+ +| Tags | #python, #vim, #git | ++---------+-------------------------------------------+ +| Github | <https://github.com/balki/vimtabdiff> | ++---------+-------------------------------------------+ +| Gitea | <https://gitea.balki.me/balki/vimtabdiff> | ++---------+-------------------------------------------+ +</div> + +## grocery_guy + +Telegram bot to manage lists. + +<div class="table"> ++----------+----------------------------------------------------+ +| Project | grocery_guy | ++----------+----------------------------------------------------+ +| Tags | #golang, #telegram | ++----------+----------------------------------------------------+ +| Gitea | <https://gitea.balki.me/balki/telegram-chklistbot> | ++----------+----------------------------------------------------+ +| Telegram | <https://t.me/grocery_guy_bot> | ++----------+----------------------------------------------------+ +</div> diff --git a/templates/index.tmpl.html b/templates/index.tmpl.html index 9d8afed..2246f12 100644 --- a/templates/index.tmpl.html +++ b/templates/index.tmpl.html @@ -4,6 +4,7 @@ <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta http-equiv="Content-Security-Policy" content="default-src 'self' 'unsafe-inline' data: ;"> + <meta http-equiv="refresh" content="5000" > <title> @@ -17,16 +18,18 @@ -
-
+
+
+
+