/
blog.html
executable file
·73 lines (64 loc) · 1.96 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
title: 'Blog'
image: 'blog.jpg'
---
{% comment %}
<section class="filters">
<h1>Quick Filters</h1>
<ul class="filters__list">
{% for category in site.categorys %}
<li class="filters__list_category" category="{{ category }}">
<a href="javascript:void(0);" onclick="verifyFilter('{{ category }}');">
{{ category }}
</a>
</li>
{% endfor %}
<li class="filters__list_category" category="undo">
<a href="javascript:void(0);" onclick="verifyFilter('undo');">
Undo
</a>
</li>
</ul>
</section>
{% endcomment %}
<section class="blog" sizer="on" kind="on">
<article class="post" title="hey">
<div class="post__content" bg-color="green" magic="crazy">
<a href="javascript:void(0);">
<h2 class="post__content_title">
Hey
</h2>
</a>
</div>
<div class="post__background"></div>
</article>
{% for post in site.posts reversed %}
{% if post.kind == 'article' %}
<article class="post" title="{{ post.title }}">
<div class="post__content" bg-color="{{ post.bg-color }}" color="{{ post.color }}" magic="{{ post.magic }}">
<a href="{% if post.link %}{{ post.link }}{% else %}{{ post.url }}{% endif %}">
<h2 class="post__content_title">
{{ post.title | truncatewords: 5 }}
</h2>
</a>
<ul tags="{% for category in post.categories %}{{ category }} {% endfor %}" class="post__content_tags">
{% for category in post.categories %}
<li category="{{ category }}">
<a href="/categories/#{{ category }}">
{{ category }}
</a>
</li>
{% endfor %}
</ul>
<a href="{% if post.link %}{{ post.link }}{% else %}{{ post.url }}{% endif %}">
<p class="post__content_intro">
{{ post.intro | truncatewords: 10 }}
</p>
</a>
</div>
<div class="post__background"{% if post.image %} style="background-image: url('/assets/img/{{ post.image }}');"{% endif %}></div>
</article>
{% endif %}
{% endfor %}
</section>