summaryrefslogtreecommitdiff
path: root/_includes/postmeta.html
blob: 544ed34a97854095b4b2b3c94fa0ded4de3a8126 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{% comment %}
This will use the ordinal plugin when it's available. This is not
possible on github pages (unless built locally and pushed there).
{% endcomment %}
<p>
    <small>
        Posted by
        {% if node.email %}
            <a href="mailto:{{ node.email }}">{{ node.author }}</a>
        {% else %}
            {{ node.author }}
        {% endif %}

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