I hereby claim:
- I am mikeygee on github.
- I am mikeygee (https://keybase.io/mikeygee) on keybase.
- I have a public key ASDDjVxIXcEBwadq58-DrmJNRL7aHXh660iBWgB35WI_oAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
<!-- using the truncate filter --> | |
{% for post in site.posts limit:10 %} | |
<h2><a href="{{ post.url }}">{{ post.title }}</a></h2> | |
<span class="post-date">{{ post.date | date: "%B %d, %Y" }}</span> | |
{% if post.content.size > 2000 %} | |
{{ post.content | truncatewords: 300 }} <!-- bad! content gives you rendered html and you will truncate in the middle of a node --> | |
<a href="{{ post.url }}">read more</a> | |
{% else %} | |
{{ post.content }} | |
{% endif %} |