-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathblog.html
64 lines (48 loc) · 1.69 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
58
59
60
61
62
63
64
---
layout: main
permalink: /blog/
title: Blog posts
---
<div class="home">
<p> Scroll through our posts or try the search function.</p>
<!-- HTML elements for search -->
<input type="text" id="search-input" placeholder="Search blog posts..">
<ul id="results-container"></ul>
<!-- or without installing anything -->
<script src="https://unpkg.com/simple-jekyll-search/dest/simple-jekyll-search.min.js"></script>
<h2 class="page-heading">Posts</h2>
<ul class="post-list">
{% for post in site.posts %}
<li>
<span class="post-meta">{{ post.date | date: "%b %-d, %Y" }}</span>
{% assign categories = post.categories %}
in
{% for category in categories %}
<a href="{{site.baseurl}}/categories/#{{category|slugize}}"> {{category}}</a>
{% unless forloop.last %} {% endunless %}
{% endfor %}
<h2>
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
</h2>
{% if post.excerpt %}
{{ post.excerpt }}
<a href="{{ post.url | prepend: site.baseurl }}">Read more..</a>
<br>
<br>
{% endif %}
{% if post %}
{% assign tags = post.tags %}
{% else %}
{% assign tags = page.tags %}
{% endif %}
<i class="fas fa-tags"></i>
{% for tag in tags %}
<a href="{{site.baseurl}}/tags/#{{tag|slugize}}">{{tag}}</a>
{% unless forloop.last %} {% endunless %}
{% endfor %}
<hr class="untight">
</li>
{% endfor %}
</ul>
<p class="rss-subscribe">subscribe <a href="{{ "/feed.xml" | prepend: site.baseurl }}">via RSS</a></p>
</div>