From 0122516fd6b6a40fc3b78104cb38da0da4f8eb55 Mon Sep 17 00:00:00 2001 From: Akshay Date: Wed, 30 Oct 2019 11:55:20 +0530 Subject: remove all js --- docs/index.html | 94 ++++++++++++++++++++++++++------------------------------- docs/style.css | 8 +++++ generate.sh | 25 ++++++++------- 3 files changed, 62 insertions(+), 65 deletions(-) diff --git a/docs/index.html b/docs/index.html index d6b29ef..e1c8c7c 100644 --- a/docs/index.html +++ b/docs/index.html @@ -13,22 +13,6 @@ n -

n

@@ -37,10 +21,12 @@ function showPost(id) {
-
-
12/10 2019
- WPA Woes - + -
-
07/08 2019
- Bye Bye BDFs - + -
-
02/08 2019
- Onivim Sucks - + -
-
31/07 2019
- Bash Harder With Vim - + -
-
30/07 2019
- Hold Position! - + -
-
29/07 2019
- Get Better At Yanking And Putting In Vim - +
diff --git a/docs/style.css b/docs/style.css index 0287de6..a510575 100644 --- a/docs/style.css +++ b/docs/style.css @@ -49,6 +49,14 @@ html { margin: 2rem; } +details > summary { + list-style: none; +} + +details > summary::-webkit-details-marker { + display: none; +} + hr { color: var(--light-black); } diff --git a/generate.sh b/generate.sh index 2d92b78..fbf5a4d 100755 --- a/generate.sh +++ b/generate.sh @@ -10,19 +10,22 @@ post_title() { post_wrapper() { # 1 - post id # 2 - post content + # 3 - date title="$( post_title $1 )" echo -ne " -
-
$3
- $title -
+
+ +
$3
+ $title +
+ -
+ " } + # meta echo " @@ -40,13 +43,6 @@ echo " n " > ./docs/index.html -# script -echo ' ' >> docs/index.html - # body echo " @@ -65,7 +61,10 @@ for f in $posts; do file="./posts/"$f echo "generating post $file" id="${file##*/}" # ill name my posts just fine + html=$(lowdown "$file") + + # generate posts post_date=$(date -r "$file" "+%d/%m %Y") post_div=$(post_wrapper "$id" "$html" "$post_date") echo -ne "$post_div" >> docs/index.html -- cgit v1.2.3