summaryrefslogtreecommitdiff
path: root/_includes/postmeta.html
blob: 4a4d5b30541f5906eb6a5b23da5bd2eaf636aa98 (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
            {% if node.author %}
                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 %}

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