summaryrefslogtreecommitdiff
path: root/_includes/postmeta.html
blob: d71b9437ac716412a40c14dfcda9f818d8b6e3e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{% assign node=include.node %}
<p>
    <small>
        Posted 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 %}

        {% 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>