Skip to content

Instantly share code, notes, and snippets.

@petkovicm
Created August 24, 2017 13:13
Show Gist options
  • Select an option

  • Save petkovicm/62d886a3f296cc6d1e15a12e26f3b961 to your computer and use it in GitHub Desktop.

Select an option

Save petkovicm/62d886a3f296cc6d1e15a12e26f3b961 to your computer and use it in GitHub Desktop.
fix read-more in index.html
{% if post.content contains '<!--more-->' %}
{{ post.content | split:'<!--more-->' | first }}
{% else %}
<!-- Case for when no excerpt is defined -->
{% endif %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment