~ane/web

web/_includes/post-title.html -rw-r--r-- 572 bytes
adb02267Antoine Kalmbach fix build 6 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{% assign post = include.post %}

{% if post.collection == 'posts' %}
  {% assign verb = 'Posted'  %}
{% else  %}
  {% assign verb = 'Created' %}
{% endif %}


{% if post.title %}
  <h2 class="p-name" style="margin: 0.25rem 0;">
    {{ post.title }}
  </h2>

  <p class="post-meta text-muted">
    <time class="dt-published" itemprop="datePublished" datetime="{{ post.date }}">
      {{ post.date | date: "%B %-d, %Y" }}{% if include.last == 'yes' %}. Last updated on <time>{{ post.last_modified_at | date: "%B %-d, %Y" }}.
    </time>
    {% endif %}

  </p>
{% endif %}