Skip to content

Instantly share code, notes, and snippets.

@petros
Created April 7, 2014 07:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save petros/10016276 to your computer and use it in GitHub Desktop.
Save petros/10016276 to your computer and use it in GitHub Desktop.
Escaping jekyll code in jekyll
<li>
  <span>{{ post.date | date_to_string }}</span> &raquo;
    {% if post.external-url %}
      <a href="{{ post.external-url }}">{% if site.titlecase %}{{ post.title | titlecase }}{% else %}{{ post.title }}{% endif %}</a> · <a class="metaperma" href="{{ root_url }}{{ post.url }}">&#8984;</a> <br />
    {% else %} <!-- normal posts -->
      <a href="{{ post.url }}"> {{ post.title }}</a>
      <!-- {{ post.excerpt }} -->
    {% endif %}
</li>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment