all repos — site @ cfe77f086122ecf97458b591cd033f20eb74187c

source for my site, found at icyphox.sh

Add -j flag in config.py

Signed-off-by: Anirudh Oppiliappan <x@icyphox.sh>
Anirudh Oppiliappan x@icyphox.sh
Tue, 26 May 2020 19:20:17 +0530
commit

cfe77f086122ecf97458b591cd033f20eb74187c

parent

b4dedd7569c3f89d5e16371d49bd315b7094cf2c

2 files changed, 7 insertions(+), 4 deletions(-)

jump to
M bin/openring.pybin/openring.py

@@ -48,6 +48,9 @@ </div>

""" ) -rendered = jinja_render(html_out, "templates/openring.html") -with open("templates/text.html", "w") as t: - t.write(rendered) +if sys.argv[1] == "-j": + rendered = jinja_render(html_out, "templates/openring.html") + with open("templates/text.html", "w") as t: + t.write(rendered) +else: + print(html_out)
M config.pyconfig.py

@@ -54,5 +54,5 @@ </a>

</div> """ template = 'text.html' # default is index.html -pre_build = ['./bin/openring.py'] +pre_build = ['./bin/openring.py -j'] post_build = ['./bin/rss.py', './bin/update_index.py']