From 9972d927b956f707bfe77dddc69c3894e2e5de95 Mon Sep 17 00:00:00 2001 From: Jorge Arias Date: Fri, 13 Nov 2015 06:14:15 -0300 Subject: [PATCH] Remove HTML chars '<' and '>' in generated post This create problem in the rendering --- _layouts/blog.html | 2 +- scripts/newpost | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/_layouts/blog.html b/_layouts/blog.html index 79557de..9a390ca 100644 --- a/_layouts/blog.html +++ b/_layouts/blog.html @@ -17,7 +17,7 @@ {{ page.content | markdownify }} {% for post in paginator.posts %} -

{{ post.date | date_to_string }} . {{ post.category }} . {{ post.title }} Comments

+

{{ post.date | date_to_string }} . {{ post.category }} . {{ post.title }} Comments

{% endfor %} {% include pagination.html %} diff --git a/scripts/newpost b/scripts/newpost index 6816f7d..1f77eae 100755 --- a/scripts/newpost +++ b/scripts/newpost @@ -7,7 +7,7 @@ POSTS_DIR = '_posts/' post = ARGV[0] File.open(POSTS_DIR + Date.today.strftime("%Y-%m-%d-") + post + '.md', 'w') {|f| f.write( - "---\nlayout: post\nsection-type: post\ntitle: \ncategory: <Category>\ntags: [ '<tag1>', '<tag2>' ]\n---") + "---\nlayout: post\nsection-type: post\ntitle: Title\ncategory: Category\ntags: [ 'tag1', 'tag2' ]\n---") } puts('[+] Created ' + post + ' post')