Skip to content

Instantly share code, notes, and snippets.

@Pageboy
Forked from lukas-h/excerpt.html
Created July 31, 2017 08:40
Show Gist options
  • Save Pageboy/fadbe577ccc59e15e263cdc2b3609b1c to your computer and use it in GitHub Desktop.
Save Pageboy/fadbe577ccc59e15e263cdc2b3609b1c to your computer and use it in GitHub Desktop.
Jekyll excerpts for not only posts. For collections and pages: http://himsel.me/blog.html
<div class="row">
{% for page in site.pages %}
<div>
<span>{{ page.title }}</span>
{% assign excerpt = page.content | split: site.excerpt_separator %}
{{ excerpt[0] }}
</div>
{% endfor %}
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment