From bca8c0e47e9d7bc0ad176b40cd3f2af8dda0dc67 Mon Sep 17 00:00:00 2001 From: Akshay Date: Sat, 1 Feb 2020 19:26:34 +0530 Subject: use heredocs instead of echo --- docs/index.html | 46 ++++++++++++++-------------------- docs/style.css | 1 + generate.sh | 77 +++++++++++++++++++++++++-------------------------------- 3 files changed, 54 insertions(+), 70 deletions(-) diff --git a/docs/index.html b/docs/index.html index 0b3e979..64640d2 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1,4 +1,3 @@ - @@ -12,18 +11,13 @@ n - - -

n

-

nerdypepper's μblog

- - -
-
-
- - +

n

+

nerdypepper's μblog

+
+
+
+
- -
@@ -177,20 +171,18 @@ min
-
- -
-
+ +
+ + + - diff --git a/docs/style.css b/docs/style.css index 1cc12b9..b09fed8 100644 --- a/docs/style.css +++ b/docs/style.css @@ -224,4 +224,5 @@ pre > code { vertical-align: middle; image-orientation: from-image; cursor: pointer; + box-shadow: none; } diff --git a/generate.sh b/generate.sh index 2ba3fc9..3d55941 100755 --- a/generate.sh +++ b/generate.sh @@ -42,41 +42,32 @@ link_wrapper() { " } -# meta -echo " +cat > ./docs/index.html << EOF - + - - - - - - - - - + + + + + + + + + n -" > ./docs/index.html - -# body -echo " -

n

-

nerdypepper's μblog

-" >> docs/index.html - +

n

+

nerdypepper's μblog

+
+
+
+ +EOF -# begin posts -echo " -
-
-
-
-" >> docs/index.html # posts -posts=$(ls -t ./posts); +posts=$(ls -t ./posts) mkdir -p docs/posts for f in $posts; do @@ -111,20 +102,20 @@ for f in $posts; do done -echo " -
-
- -
-
+cat >> ./docs/index.html << EOF + +
+ + + -" >> docs/index.html +EOF -- cgit v1.2.3