summaryrefslogtreecommitdiff
path: root/_includes/postmeta.html
blob: 3bc9bf7e823199b0c9d014e83f841b4c7a716919 (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
{% assign node=include.node %}
{% if node.author or node.date %}
    <p>
        <small>
            Posted {% comment %}
            {% endcomment %}{% if node.author %}{% comment %}
                {% endcomment %}by
                {% if node.web %}
                    <a href="{{ node.web }}">{{ node.author }}</a>
                {% elsif node.email %}
                    <a href="mailto:{{ node.email }}">{{ node.author }}</a>
                {% else %}
                    {{ node.author }}
                {% endif %}
            {% endif %}{% comment %}

            {% endcomment %}{% if node.date %}{% comment %}
                {% endcomment %}{% assign rd = node.date | date: "%-d" %}{% capture ordinalize %}{% include ordinal.html ordinalize=rd %}{% endcapture %}{% comment %}
                {% endcomment %}on {{ node.date | date: "%B %-d" }}<sup>{{ ordinalize | strip_newlines }}</sup>{% comment %}
                {% endcomment %} {{ node.date | date: "%Y" }}
            {% endif %}
        </small>
    </p>
{% endif %}