From 05868777b47a60cba919fa6bd5e90737979de6f7 Mon Sep 17 00:00:00 2001 From: Marcin Chrzanowski Date: Sun, 15 Dec 2019 14:29:30 +0100 Subject: Clean up post compilation * All posts are compiled before writing them * Templated posts don't end up with .erb suffix --- scripts/build.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/build.rb b/scripts/build.rb index 1895781..9b48da4 100755 --- a/scripts/build.rb +++ b/scripts/build.rb @@ -45,7 +45,7 @@ if !Dir.exists? 'public/blog' end posts.each do |post| - P.add post['id'], post['filename'] + P.add post['id'], post['html_filename'] end write_statics statics @@ -55,6 +55,7 @@ write_blog_archive P.cd 'blog' +compile_posts posts write_blog_files P.cd '..' -- cgit v1.2.3