From e2f17c8367f76c587e08dba0bee78d949f2201f7 Mon Sep 17 00:00:00 2001 From: Alvie Rahman Date: Fri, 30 Apr 2021 22:08:15 +0100 Subject: [PATCH] fix issues --- Makefile | 2 +- notes2web | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index bea070a..4ba061e 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ install: - cp notes2web/usr/local/bin + cp notes2web /usr/local/bin mkdir -p /opt/notes2web cp -r templates /opt/notes2web cp styles.css /opt/notes2web diff --git a/notes2web b/notes2web index 0da6a5f..5e9eb90 100755 --- a/notes2web +++ b/notes2web @@ -8,7 +8,7 @@ function _render { --toc\ --standalone\ -t html\ - --template /opt/gen_notes/templates/article.html\ + --template /opt/notes2web/templates/article.html\ -o "$(dirname "$1")/index.html"\ "$1"\ --mathjax @@ -18,7 +18,7 @@ function _renderindex { echo "rendering $1" pandoc\ -t html\ - --template /opt/gen_notes/templates/index.html\ + --template /opt/notes2web/templates/index.html\ -o index.html\ "$1" } @@ -28,7 +28,7 @@ function _addtolist { pandoc\ -t html\ -V "filepath=$(dirname "$1")"\ - --template /opt/gen_notes/templates/listitem.html\ + --template /opt/notes2web/templates/listitem.html\ "$1"\ >> index.md } @@ -57,4 +57,4 @@ done _renderindex index.md echo "copying styles.css to current directory" -cp /opt/gen_notes/styles.css . +cp /opt/notes2web/styles.css .