-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
29 lines (28 loc) · 1.03 KB
/
index.html
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
27
28
29
---
title: Blog
date: 2021-04-10 01:54:00 Z
permalink: "/"
layout: default
---
<div class="container central blogindex">
<div class="row">
<div class="col-lg-12 records">
<div class="row">
{% for post in site.posts %}
<div class="col-lg-12 col-12">
<h3><a href="{{ post.url }}">{{ post.title }}</a></h3>
<h5>Posted {{ post.date | date: "%e %b, %Y" }}</h5>
{% if post.content contains "<!-- excerpt-start -->" %}
{% assign excerptParts = post.content | split: "<!-- excerpt-start -->" %}
{% assign excerpt = excerptParts[1] | markdownify | strip_html | truncatewords: 50 %}
{% else %}
{% assign excerpt = post.excerpt | truncatewords: 50 %}
{% endif %}
<p>{{ excerpt | strip_html }}... <a class="hidden-xs hidden-sm" href="{{ post.url }}">See more</a></p>
<p class="visible-xs visible-sm"><a href="{{ post.url }}">See more</a></p>
</div>
{% endfor %}
</div>
</div>
</div>
</div>