Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Jekyll excerpts for not only posts. For collections and pages:
<div class="row">
{% for page in site.pages %}
<span>{{ page.title }}</span>
{% assign excerpt = page.content | split: site.excerpt_separator %}
{{ excerpt[0] }}
{% endfor %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment