-
Notifications
You must be signed in to change notification settings - Fork 0
/
blog.html
executable file
·73 lines (69 loc) · 2.6 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
65
66
67
68
69
70
71
72
73
---
layout: default
---
<article id="main">
<section id="banner">
<div class="inner">
<h3>This Is Not a Safe Space</h3>
</br>
<h4>Beware Those That Enter</h4>
</div>
</section>
<section class="wrapper style4 container">
<div class="row oneandhalf">
<!-- left side -->
<div class="8u">
<section class="content">
<ul class="posts">
{% for post in site.posts %}
{% if post.tags contains "first" %}
<li class="wrapper {% if forloop.first %} style2 {% else %} style1 {% endif %}">
<h2><a href="{{ post.url }}">{{ post.title }}</a></h2>
{{ post.excerpt }}
<section class="special">
<ul class="buttons">
<li><a href="{{ post.url }}" class="button">Read more</a></li>
</ul></section>
</li>
{% endif %}
{% endfor %}
</ul>
</section>
</div>
<!-- right sidebar -->
<div class="4u">
<div class="sidebar">
<section>
<ul>
{% assign tags = site.tags | sort %}
{% for tag in tags %}
<li style="font-size:{{ tag | last | size | times: 10 | plus: 80 }}%;">
<a href="/tags.html#{{tag[0]}}">{{ tag[0] | replace:'-', ' ' }} ({{ tag | last | size}})</a>
</li>
{% endfor %}
</ul>
</section>
</div>
</div>
</div>
<!-- Full page -->
<ul class="posts">
{% for post in site.posts %}
{% if post.tags contains "comic" %}
<!-- nothing! -->
{% elsif post.tags contains "first" %}
<!-- nothing ! -->
{% else %}
<li class="wrapper style1 ">
<h2 style="text-align: center"><a href="{{ post.url }}">{{ post.title }}</a></h2>
{{ post.excerpt }}
<section class="special">
<ul class="buttons">
<li><a href="{{ post.url }}" class="button">Read more</a></li>
</ul></section>
</li>
{% endif %}
{% endfor %}
</ul>
</section>
</article>