-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathblog.html
More file actions
26 lines (26 loc) · 953 Bytes
/
blog.html
File metadata and controls
26 lines (26 loc) · 953 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
---
layout: default
title: blog.
---
{% assign i = 1 %}
{%- if site.posts.size > 0 -%}
<h1 class="text-primary">{{ page.title | default: "Posts" }}</h1>
{%- for post in site.posts -%}
<a href="{{ post.url | relative_url }}" style="text-decoration: none">
<div class="card border-secondary mb-4" style="max-width: 100%">
{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
<div class="card-header">{{ post.date | date: date_format }}</div>
<div class="card-body">
<h4 class="card-title">{{ post.title | escape }}</h4>
<p class="card-text">
{%- if site.show_excerpts -%}
{{ post.excerpt | remove: '<p>' | remove: '</p>' }}
{%- endif -%}
</p>
</div>
</div>
</a>
{%- endfor -%}
<br>
<p class="feed-subscribe"><i class="fab fa fa-rss white-text mr-md-5 mr-3"></i><a href="{{ "/feed.xml" | relative_url }}">subscribe.</a></p>
{%- endif -%}