Skip to content

Instantly share code, notes, and snippets.

@lukas-h
Last active January 30, 2018 05:06
Show Gist options
  • Save lukas-h/75081c62afa85dafbdc18a5bcb1242e1 to your computer and use it in GitHub Desktop.
Save lukas-h/75081c62afa85dafbdc18a5bcb1242e1 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