UNPKG

phpjs

Version:

php.js offers community built php functions in javascript

37 lines (36 loc) 1.87 kB
{% unless page.no_header %} <header> {% if index %} {% if post.external-url %}<!-- This defines how Octopress will use posts with external-url. --> <h1 class="entry-title external"><a href="{{ post.external-url }}">{% if site.titlecase %}{{ post.title | titlecase }} <span>&rArr;</span>{% else %}{{ post.title }}{% endif %}</a></h1> {% else %}<!-- Now we're back to normal posts. Note the links used under href in both headers.--> <h1 class="entry-title"><a href="{{ root_url }}{{ post.url }}">{% if site.titlecase %}{{ post.title | titlecase }}{% else %}{{ post.title }}{% endif %}</a></h1> {% endif %} {% else %} {% if page.external-url %} <h1 class="entry-title external"><a href="{{ page.external-url }}">{% if site.titlecase %}{{ page.title | titlecase }} <span>&rArr;</span>{% else %}{{ page.title }}{% endif %}</a></h1> {% else %} <h1 class="entry-title">{% if site.titlecase %}{{ page.title | titlecase }}{% else %}{{ page.title }}{% endif %}</h1> {% endif %} {% endif %} {% unless page.meta == false %} <p class="meta"> {% include post/date.html %}{{ time }} {% if site.disqus_short_name and page.comments != false and post.comments != false and site.disqus_show_comment_count == true %} | <a href="{% if index %}{{ root_url }}{{ post.url }}{% endif %}#disqus_thread">Comments</a> {% endif %} </p> {% endunless %} </header> {% endunless %} {% if index %} <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 %}