m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Chrzanowski <m@m-chrzan.xyz>2021-03-27 22:20:38 +0100
committerMarcin Chrzanowski <m@m-chrzan.xyz>2021-03-27 22:20:38 +0100
commit734687cad0d439cc90551be2e82bdd61280a07d6 (patch)
treeeebdcc811ec43555fd484b20b513e65a174b1331
parent9a723fc1840f41be69ec40e76b0ba9478aacc848 (diff)
Reuse function for blog archive
-rw-r--r--lib/blog.rb3
1 files changed, 1 insertions, 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