-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·55 lines (48 loc) · 1.35 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
51
52
53
54
55
---
layout: default
title: 'Home'
image: 'home.jpg'
---
<section class="myself">
<p>
Hey.
</p>
</section>
<section class="blog">
<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 %}
<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 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>
{% endfor %}
</section>