all repos — site @ f0a9555bf597a08c336c02a883538e3b96d44e5c

source for my site, found at icyphox.sh

Script updates

Signed-off-by: Anirudh Oppiliappan <x@icyphox.sh>
Anirudh Oppiliappan x@icyphox.sh
Wed, 25 Mar 2020 12:44:25 +0530
commit

f0a9555bf597a08c336c02a883538e3b96d44e5c

parent

40f93d1be10c58d89c99bb65420ac932669fd099

4 files changed, 5 insertions(+), 4 deletions(-)

jump to
M bin/plaintext.shbin/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.pybin/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 config.pyconfig.py

@@ -52,4 +52,4 @@ </a>

</div> """ template = 'text.html' # default is index.html -post_build = ['./bin/rss.py', './bin/plaintext.sh'] +post_build = ['./bin/rss.py', './bin/plaintext.sh', './bin/update_index.py']
M templates/text.htmltemplates/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 }}