jrgnsn.net/_includes/post-stub.html -rw-r--r-- 565 bytes View raw
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<div class="post-stub">
  <h2>
    <span class="date hidden-xs">
      {{ include.post.date | date: "%Y-%m-%d" }}
    </span>
    <span class="title">
      {% if include.post._url %}
      <a href="{{ include.post._url }}" target="_blank">
        {{ include.post.title }}
        <i class="fa fa-external-link"></i>
      </a>
      {% else %}
      <a href="{{ include.post.url }}">{{ include.post.title }}</a>
      {% endif %}
    </span>
  </h2>
  {% if include.post._url or include.no_excerpt %}
  {% else %}
  {{ include.post.excerpt }}
  {% endif %}
</div>