Skip to content

Instantly share code, notes, and snippets.

@rwboyer
Last active December 19, 2015 18:09
Show Gist options
  • Select an option

  • Save rwboyer/5996772 to your computer and use it in GitHub Desktop.

Select an option

Save rwboyer/5996772 to your computer and use it in GitHub Desktop.
clip from code that now does extremely strange things in Jekyll 1.1.0. It re-wraps what should be just article content through the entire layout chain over again so you end up with a site within a site - or a list of sites within sites... Maybe I am doing something way nuts and just don't see it but worked find up through 1.0.3
<div class="entry-content">{{ content | excerpt }}</div>
{% capture excerpted %}{{ content | has_excerpt }}{% endcapture %}
{% if excerpted == 'true' %}
<footer>
<a rel="full-article" href="{{ root_url }}{{ post.url }}">{{ site.excerpt_link }}</a>
</footer>
{% endif %}
{% else %}
<div class="entry-content">{{ content }}</div>
{% endif %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment