modify some things with blog post handling

This commit is contained in:
Andrew Cassidy 2017-12-26 14:54:31 -08:00 committed by Andrew Cassidy
parent fd8e29ae48
commit 77caf0c33a
2 changed files with 5 additions and 4 deletions

View File

@ -17,7 +17,7 @@ permalink: Blog/
{% include post-info.html tags = post.tags date=post.date%} {% include post-info.html tags = post.tags date=post.date%}
<div class="post-excerpt"> <div class="post-excerpt">
{{post.content | markdownify| truncate: char-count}} {{post.content | markdownify | strip_html | truncate: char-count}}
<a class="post-see-more" href="{{ post.url | prepend: site.baseurl }}"> <a class="post-see-more" href="{{ post.url | prepend: site.baseurl }}">
<i>See&nbsp;More</i> <i>See&nbsp;More</i>

View File

@ -4,8 +4,9 @@
<small> <small>
Tags: Tags:
{% if include.tags.size > 0 %} {% if include.tags.size > 0 %}
{% for tag in include.tags limit: 6%} {% assign tags = include.tags | sort_natural | uniq %}
<i>{{ tag }}</i> {% for tag in tags %}
<i>{{ tag | downcase }}</i>
{% endfor %} {% endfor %}
{% else %} {% else %}
none none
@ -13,7 +14,7 @@
</small> </small>
<td class="post-date" style="text-align:right"> <td class="post-date" style="text-align:right">
<small> <small>
<i>{{ include.date | date: "%b %-d, %Y" }}</i> <i>{{ include.date | date: "%b&nbsp;%-d,&nbsp;%Y" }}</i>
</small> </small>
</td> </td>
</tr> </tr>