-
Notifications
You must be signed in to change notification settings - Fork 41
/
blog-2.html
executable file
·49 lines (46 loc) · 1.67 KB
/
blog-2.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
---
layout: default
header_image: "/assets/images/bg/blog-bg.jpg"
title: "Our Blog"
description: "Dolor sit amet consectetur elit sed do eiusmod tempor incididunt labore et dolore magna aliqua enim ad minim veniam quis."
pagination:
enabled: true
---
{% include page_header.html %}
<section class="section">
<div class="container">
<div class="row justify-content-center">
<div class="col-lg-8">
<div class="row justify-content-center">
{% for post in pagination.posts %}
<div class="col-lg-12 col-md-12">
<div class="blog-item mb-5">
{% if post.post_image %}
<div class="blog-img position-relative">
<a href="{{post.url | relative_url}}.html"><img src="{{post.post_image | relative_url}}" alt="{{post.title}}" class="img-fluid w-100"/></a>
</div>
{% endif %}
<h4 class="mt-4 mb-2"><a href="{{post.url | relative_url}}.html">{{post.title}}</a></h4>
<div class="post-meta text-uppercase mb-3">
{% if post.author %}
<a href="#" class="text-color">by {{post.author}}</a>
{% endif %}
{% if post.date %}
<span class="text-color">/ {{post.date | date_to_long_string}}</span>
{% endif %}
</div>
<p>{{post.excerpt | strip_html | truncatewords:"25"}}</p>
<a href="{{post.url | relative_url}}.html" class="btn btn-solid-border">Read More </a>
</div>
</div>
{% endfor %}
</div>
</div>
<div class="col-lg-4">
{% include sidebar.html %}
</div>
</div>
{% include pagination.html %}
</div>
</section>
{% include call_to_action.html %}