-
Notifications
You must be signed in to change notification settings - Fork 0
/
blog.html
57 lines (48 loc) · 1.75 KB
/
blog.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
50
51
52
53
54
55
56
57
---
---
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="/assets/css/blog-style.css">
<title>{{ site.title }}</title>
</head>
<body>
<div class="blog-container">
{% include navigation.html %}
<div class="blog-card-container">
<div class="blog-card-container-head">Recent Posts .</div>
{% assign latest_posts = site.posts | sort: 'date' | reverse | limit: 4 %}
<div class="blog-cards">
{% for post in latest_posts %}
<div class="blog-card">
<a href="{{ post.url }}">
<img src="{{ site.cover_base_url }}{{ post.cover-image }}" alt="{{ post.title }}">
<div class="blog-content">
<div class="blog-meta">{{ post.date | date: "%b %-d, %Y" }}</div>
<div class="blog-title">{{ post.title }}</div>
<div class="blog-meta">{{ post.author }}</div>
</div>
</a>
</div>
{% endfor %}
</div>
</div>
<!-- <div class="search-blogs-container">
<div class="search-box-container">
<input type="text" class="search-box" placeholder="Search blog">
</div>
<div class="search-container">
</div>
</div> -->
{% include footer.html %}
</div>
</body>
</html>
<!-- {% for post in site.posts %}
<li>
<h2><a href="{{ post.url }}">{{ post.title }}</a></h2>
{{ post.excerpt }}
</li>
{% endfor %} -->