aboutsummaryrefslogtreecommitdiff
path: root/themes/classic/source/_includes/article.html
blob: 1be65526c062d1e1dcb7755dda60fdecf28b79c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{% if page.author %}
  {% assign author = page.author %}
{% else %}
  {% assign author = site.author %}
{% endif %}
<header>
  {% if index %}
    <h1 class="entry-title"><a href="{{ page.url }}">{{ page.title }}</a></h1>
  {% else %}
    <h1 class="entry-title">{{ page.title }}</h1>
  {% endif %}
  {% unless page.nometa %}
    <p>
      {% if page.date %}
        <time datetime="{{ page.date | datetime }}" pubdate {% if page.updated %} updated {% endif %}>{{ page.date | ordinalize }}</time>
      {% endif %}
      {% if page.updated %}
        <time class="updated" datetime="{{ page.updated | datetime }}"></time>
      {% endif %}
      {% if author %}<span class="byline author vcard">By <span class="fn">{{ author }}</span></span>{% endif %}
    </p>
  {% endunless %}
</header>
{% if index %}
<div class="entry-content">{{ content | exerpt(content, page.url, 'Continue reading &raquo;') | smart_quotes }}</div>
{% else %}
<div class="entry-content">{{ content | smart_quotes }}</div>
{% endif %}