Script updates Signed-off-by: Anirudh Oppiliappan <x@icyphox.sh>
Anirudh Oppiliappan x@icyphox.sh
Wed, 25 Mar 2020 12:44:25 +0530
4 files changed,
5 insertions(+),
4 deletions(-)
M
bin/plaintext.sh
→
bin/plaintext.sh
@@ -17,7 +17,8 @@ pandoc --quiet -s -f "markdown+gutenberg" \
"$p" -o "pages/txt/$no_ext.txt" # we have to 'mv' each file because of how pandoc treats # output to plaintext. it's weird. - mv "pages/txt/$no_ext.txt" "pages/txt/$no_ext" } done +mv pages/txt/*.txt build/blog/ +
M
bin/update_index.py
→
bin/update_index.py
@@ -36,7 +36,7 @@ f.writelines(md)
def update_blog(s): - path = "../pages/blog/_index.md" + path = "../pages/_index.md" s = s + "\n" with open(path) as f: tempf = f.readlines()
M
templates/text.html
→
templates/text.html
@@ -30,7 +30,7 @@ <header>
{{ header }} </header> <div style="float: right"> - view in <a href="/txt/{{ url }}">plain-text</a> + view in <a href="/blog/{{ url }}.txt">plain-text</a> </div> <div style="float: left"> {{ date }}