Remove HTML chars '<' and '>' in generated post

This create problem in the rendering
This commit is contained in:
Jorge Arias 2015-11-13 06:14:15 -03:00
parent 12a41c474e
commit 9972d927b9
2 changed files with 2 additions and 2 deletions

View file

@ -17,7 +17,7 @@
{{ page.content | markdownify }} {{ page.content | markdownify }}
{% for post in paginator.posts %} {% for post in paginator.posts %}
<h4 align="left"><strong>{{ post.date | date_to_string }}</strong> <small>. {{ post.category }} .</small> <a href="{{site.baseurl}}{{post.url}}"> <strong>{{ post.title }} </strong> </a> <small><a href="{{site.baseurl}}{{post.url}}#disqus_thread">Comments</a></small></h4> <h4 align="left"><strong>{{ post.date | date_to_string }}</strong> <small>. {{ post.category }} .</small> <a href="{{site.baseurl}}{{post.url}}"> <strong>{{ post.title }}</strong> </a> <small><a href="{{site.baseurl}}{{post.url}}#disqus_thread">Comments</a></small></h4>
{% endfor %} {% endfor %}
{% include pagination.html %} {% include pagination.html %}

View file

@ -7,7 +7,7 @@ POSTS_DIR = '_posts/'
post = ARGV[0] post = ARGV[0]
File.open(POSTS_DIR + Date.today.strftime("%Y-%m-%d-") + post + '.md', 'w') {|f| f.write( File.open(POSTS_DIR + Date.today.strftime("%Y-%m-%d-") + post + '.md', 'w') {|f| f.write(
"---\nlayout: post\nsection-type: post\ntitle: <Title>\ncategory: <Category>\ntags: [ '<tag1>', '<tag2>' ]\n---") "---\nlayout: post\nsection-type: post\ntitle: Title\ncategory: Category\ntags: [ 'tag1', 'tag2' ]\n---")
} }
puts('[+] Created ' + post + ' post') puts('[+] Created ' + post + ' post')