-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathblog.html
54 lines (53 loc) · 1.44 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
---
layout: default
title: Samasaur1 | Blog
---
<div style="flex: 1;">
<div style="padding: 1.5em;">
<h1>Latest Posts</h1>
<!-- <a href="{{ "/feed.xml" | relative_url }}">
<p>RSS/Atom feed <img src="{{ "/assets/images/feed-icon.png" | relative_url }}"/></p>
</a> -->
<a style="position: relative; top: -44px; float: right;" href="{{ "feed.xml" | relative_url }}">
<img src="{{ "/assets/images/feed-icon.png" | relative_url }}"/>
</a>
<ul>
{% for post in site.posts %}
<li{% if post.path contains '_drafts/' %} class="draft"{% endif %}>
{% include post.html %}
</li>
{% endfor %}
</ul>
{% assign x = site.posts | map: "path" | join: "" %}
{% if x contains '_drafts/' %}
<style>
ul > li.draft > h3 > a::after {
content: ' (draft)';
font-size: 50%;
color: red;
}
</style>
{% endif %}
<h2>Tags</h2>
<ul>
{% for tag in site.tags %}
{% assign css-class = "badge-secondary" %}
{% for site_tag in site.data.tags %}
{% if site_tag.name == tag[0] %}
{% if site_tag.class %}
{% assign css-class = site_tag.class %}
{% endif %}
{% endif %}
{% endfor %}
<li>
{% assign t = tag[0] %}
{% include tag.html name=t %}
({{ tag[1] | size }})
</li>
{% endfor %}
</ul>
</div>
</div>
<div style="padding: 5px; text-align: center; margin-bottom: 5px; padding-top: 0px;">
<a href="{{ "/feed.xml" | relative_url }}">RSS/Atom feed</a>
</div>