From 734687cad0d439cc90551be2e82bdd61280a07d6 Mon Sep 17 00:00:00 2001 From: Marcin Chrzanowski Date: Sat, 27 Mar 2021 22:20:38 +0100 Subject: Reuse function for blog archive --- lib/blog.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/blog.rb b/lib/blog.rb index 7500aa8..d55c0c1 100644 --- a/lib/blog.rb +++ b/lib/blog.rb @@ -51,6 +51,5 @@ def write_blog_files end def write_blog_archive - content = ERB.new(File.read(src 'blog.html.erb')).result - write_templated content, 'blog.html', title: 'Blog.' + write_templated_erb 'blog.html.erb', title: 'Blog.' end -- cgit v1.2.3