-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathblog.html
38 lines (32 loc) · 1.05 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
---
layout: default
title: Blog
permalink: /blog/
---
<section class="blog-posts">
<h1 class="bp">{{ page.title }}</h1>
<!-- Search Bar -->
<div class="search-container">
<input type="text" id="search-input" placeholder="Search by title or category..." />
</div>
<div class="post-name-wrapper" id="post-container">
{% for post in site.posts %}
<div class="post-name" data-title="{{ post.title | downcase }}"
data-tags="{{ post.categories | join: ' ' | downcase }}">
<h2 class="post-title">
<a href="{{ post.url }}">{{ post.title }}</a>
</h2>
<p class="post-date">{{ post.date | date: "%B %d, %Y" }}</p>
<div class="post-tags">
tags: {% for tag in post.categories %}
<span class="tag">{{ tag }}{% unless forloop.last %},{% endunless %}</span>
{% endfor %}
</div>
<p class="post-excerpt">
{{ post.excerpt | strip_html | truncatewords: 20 }}
</p>
<a href="{{ post.url }}" class="read-more">Read More →</a>
</div>
{% endfor %}
</div>
</section>