|
49 | 49 | {% for post in posts %} |
50 | 50 |
|
51 | 51 | <div class="post-preview"> |
52 | | - <div class="d-flex justify-content-between pr-xl-2"> |
53 | | - <h1><a href="{{ post.url | relative_url }}">{{ post.title }}</a></h1> |
54 | | - {% if post.pin == true %} |
55 | | - <i class="fas fa-thumbtack fa-fw text-muted mt-1 ml-2 mt-xl-2" data-toggle="tooltip" data-placement="left" |
56 | | - title="Pinned"></i> |
57 | | - {% endif %} |
58 | | - </div> |
| 52 | + <a href="{{ post.url | relative_url }}"> |
| 53 | + <h1>{{ post.title }}</h1> |
| 54 | + </a> |
| 55 | + |
59 | 56 | <div class="post-content"> |
60 | 57 | <p> |
61 | 58 | {% include no-linenos.html content=post.content %} |
62 | 59 | {{ content | markdownify | strip_html | truncate: 200 }} |
63 | 60 | </p> |
64 | 61 | </div> |
65 | 62 |
|
66 | | - <div class="post-meta text-muted"> |
67 | | - <!-- posted date --> |
68 | | - <i class="far fa-calendar fa-fw"></i> |
69 | | - {% include timeago.html date=post.date tooltip=true %} |
70 | | - |
71 | | - <!-- time to read --> |
72 | | - <i class="far fa-clock fa-fw"></i> |
73 | | - <span>{% include read-time.html content=post.content %}</span> |
74 | | - |
75 | | - <!-- page views --> |
76 | | - {% if site.google_analytics.pv.enabled %} |
77 | | - <i class="far fa-eye fa-fw"></i> |
78 | | - <span id="pv_{{-post.title-}}" class="pageviews"> |
79 | | - <i class="fas fa-spinner fa-spin fa-fw"></i> |
80 | | - </span> |
| 63 | + <div class="post-meta text-muted d-flex justify-content-between"> |
| 64 | + |
| 65 | + <div> |
| 66 | + <!-- posted date --> |
| 67 | + <i class="far fa-calendar fa-fw"></i> |
| 68 | + {% include timeago.html date=post.date tooltip=true %} |
| 69 | + |
| 70 | + <!-- time to read --> |
| 71 | + <i class="far fa-clock fa-fw"></i> |
| 72 | + {% include read-time.html content=post.content %} |
| 73 | + |
| 74 | + <!-- page views --> |
| 75 | + {% if site.google_analytics.pv.enabled %} |
| 76 | + <i class="far fa-eye fa-fw"></i> |
| 77 | + <span id="pv_{{-post.title-}}" class="pageviews"> |
| 78 | + <i class="fas fa-spinner fa-spin fa-fw"></i> |
| 79 | + </span> |
| 80 | + {% endif %} |
| 81 | + </div> |
| 82 | + |
| 83 | + {% if post.pin %} |
| 84 | + <div class="pin"> |
| 85 | + <i class="fas fa-thumbtack fa-fw"></i> |
| 86 | + <span>{{ site.data.label.pin_prompt }}</span> |
| 87 | + </div> |
81 | 88 | {% endif %} |
82 | 89 |
|
83 | | - </div> |
| 90 | + </div> <!-- .post-meta --> |
| 91 | + |
84 | 92 | </div> <!-- .post-review --> |
85 | 93 |
|
86 | 94 | {% endfor %} |
|
0 commit comments