@@ -118,6 +118,7 @@ title: Home | |||||
{% for post in site.posts %} | {% for post in site.posts %} | ||||
<li data-tags="{{ post.tags | join: "|" }}">{{ post.date | date: "%b %-d, %Y" }}: <a class="underlined" href="{{ post.url }}">{{ post.title }}</a><br /><span class="subtitle">{{ post.description }}<br />{{ post.tags | join: ", " }} · <a href="{{ post.url }}#disqus_thread" data-disqus-identifier="{{ post.id }}"></a></span></li> | <li data-tags="{{ post.tags | join: "|" }}">{{ post.date | date: "%b %-d, %Y" }}: <a class="underlined" href="{{ post.url }}">{{ post.title }}</a><br /><span class="subtitle">{{ post.description }}<br />{{ post.tags | join: ", " }} · <a href="{{ post.url }}#disqus_thread" data-disqus-identifier="{{ post.id }}"></a></span></li> | ||||
{% endfor %} | {% endfor %} | ||||
<li id="null-post" data-tags="" style="display: none;"><i>No posts with these tags</i></li> | |||||
</ul> | </ul> | ||||
</td> | </td> | ||||
</tr> | </tr> | ||||
@@ -11,6 +11,7 @@ function load_tag_filters() { | |||||
filter.push($(this).data("tag")) | filter.push($(this).data("tag")) | ||||
}); | }); | ||||
$("#post-list li").show(); | $("#post-list li").show(); | ||||
$("#null-post").hide(); | |||||
if ($(".tag-selected").length == 0) | if ($(".tag-selected").length == 0) | ||||
return; | return; | ||||
$("#post-list li").each(function() { | $("#post-list li").each(function() { | ||||
@@ -22,6 +23,8 @@ function load_tag_filters() { | |||||
} | } | ||||
} | } | ||||
}); | }); | ||||
if ($("#post-list li:not(:hidden)").length == 0) | |||||
$("#null-post").show(); | |||||
} | } | ||||
if (window.location.hash) { | if (window.location.hash) { | ||||