diff options
author | Akshay <[email protected]> | 2020-04-16 09:10:36 +0100 |
---|---|---|
committer | Akshay <[email protected]> | 2020-04-16 09:10:36 +0100 |
commit | d71a288d944959057064d64ce03cad759a42ba06 (patch) | |
tree | a59035e944f624baad75e7f195ad1c45c462f00c | |
parent | 148900154f28573b6640e996906374fe33a11762 (diff) |
use pandoc to render posts
-rwxr-xr-x | generate.sh | 1 | ||||
-rw-r--r-- | post.esh | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/generate.sh b/generate.sh index 9950f41..5a01962 100755 --- a/generate.sh +++ b/generate.sh | |||
@@ -90,7 +90,6 @@ for f in $posts; do | |||
90 | id="${file##*/}" # ill name my posts just fine | 90 | id="${file##*/}" # ill name my posts just fine |
91 | 91 | ||
92 | # generate posts | 92 | # generate posts |
93 | html=$(lowdown "$file") | ||
94 | stats=$(wc "$file") | 93 | stats=$(wc "$file") |
95 | words="$(echo $stats | awk '{print $2}')" | 94 | words="$(echo $stats | awk '{print $2}')" |
96 | lines="$(echo $stats | awk '{print $1}')" | 95 | lines="$(echo $stats | awk '{print $1}')" |
@@ -36,7 +36,7 @@ | |||
36 | <%=$title%> | 36 | <%=$title%> |
37 | </h1> | 37 | </h1> |
38 | <div class="post-text"> | 38 | <div class="post-text"> |
39 | <% lowdown "$file"%> | 39 | <% pandoc --quiet -t html -s --highlight-style monochrome "$file" %> |
40 | </div> | 40 | </div> |
41 | <%= "$intro" %> | 41 | <%= "$intro" %> |
42 | <a href="/" class="post-end-link">⟵ Back</a> | 42 | <a href="/" class="post-end-link">⟵ Back</a> |