summaryrefslogtreecommitdiffstats
path: root/bin/news
diff options
context:
space:
mode:
Diffstat (limited to 'bin/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():