forked from barryclark/jekyll-now
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
50 lines (49 loc) · 1.76 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
---
layout: default
---
<div class="posts">
{% for post in site.posts %}
{% if post.pinned %}
<div class="post-card">
<a href="{{ site.baseurl }}{{ post.url }}">
<img src="images/{{post.folder}}/index.png" style="border-radius: 0.5rem 0.5rem 0rem 0rem" alt="Index photo">
</a>
<article class="post">
<h1>
<a href="{{ site.baseurl }}{{ post.url }}">📌 {{ post.title }}</a>
</h1>
<a href="{{ site.baseurl }}{{ post.url }}" class="read-more">Read More</a>
<br>
<div align="right">
{% for cat in post.categories %}
<a href="{{ site.baseurl }}/categories/#{{ cat | replace: ' ', '-' }}" class="chip chip-primary">{{ cat }}</a>
{% endfor %}
</div>
</article>
</div>
{% endif %}
{% endfor %}
{% for post in site.posts %}
{% unless post.pinned %}
<div class="post-card">
<a href="{{ site.baseurl }}{{ post.url }}">
<img src="images/{{post.folder}}/index.png" style="border-radius: 0.5rem" alt="Index photo">
</a>
<article class="post">
<h1>
<a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a>
</h1>
<a href="{{ site.baseurl }}{{ post.url }}" class="read-more">Read More</a>
<br>
<div align="right">
{% for cat in post.categories %}
<a href="{{ site.baseurl }}/categories/#{{ cat | replace: ' ', '-' }}" class="chip chip-primary">{{ cat }}</a>
{% endfor %}
</div>
</article>
</div>
{% endunless %}
{% endfor %}
<br>
<b>Welcome! Hope you find something interesting!</b>
</div>