fixed misspelling of exerpt to excerpt for in the Octopress filters

main
Brandon Mathis 14 years ago
parent f49b24ac60
commit da38dbe584

@ -11,7 +11,7 @@
</header> </header>
{% endunless %} {% endunless %}
{% if index %} {% if index %}
<div class="entry-content">{{ content | exerpt }}</div> <div class="entry-content">{{ content | excerpt }}</div>
<footer> <footer>
<a rel="full-article" href="{{ root_url }}{{ post.url }}">Read on &rarr;</a> <a rel="full-article" href="{{ root_url }}{{ post.url }}">Read on &rarr;</a>
</footer> </footer>

@ -2,7 +2,7 @@
module OctopressFilters module OctopressFilters
# Used on the blog index to split posts on the <!--more--> marker # Used on the blog index to split posts on the <!--more--> marker
def exerpt(input) def excerpt(input)
if input.index(/<!--\s*more\s*-->/i) if input.index(/<!--\s*more\s*-->/i)
input.split(/<!--\s*more\s*-->/i)[0] input.split(/<!--\s*more\s*-->/i)[0]
else else

Loading…
Cancel
Save