fixed misspelling of exerpt to excerpt for in the Octopress filters
This commit is contained in:
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 →</a>
|
<a rel="full-article" href="{{ root_url }}{{ post.url }}">Read on →</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…
Reference in New Issue
Block a user