summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrsiddharth <s@ricketyspace.net>2019-05-15 21:25:16 -0400
committerrsiddharth <s@ricketyspace.net>2019-05-15 21:25:16 -0400
commitc079bf2601dd797d1b73393fa30dcb13e1ceeb9a (patch)
tree3a623c892f39a75b2d4f63f3394466aa8be2a053
parent086f890f3e602c2a2fa5de8124d512856b7f9ed6 (diff)
bin/news: Update process.
* bin/news (process): Dump html to _build/news/
-rw-r--r--bin/news3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/news b/bin/news
index 8240c06..9498d9f 100644
--- a/bin/news
+++ b/bin/news
@@ -115,12 +115,15 @@ def html(t, d, c):
def process(f):
c = read(f.path)
+ s = slug(f.path)
t = title(c)
d = date(c)
c = content(c)
h = html(t, d, c)
+ write('/'.join(['_build', 'news', s, 'index.html']), h)
+
def run():
for f in files():