-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
34 lines (33 loc) · 1.5 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
---
layout: default
image: /assets/ninja.png
---
<ul>
{% for post in paginator.posts %}
<li>
<h2><a href="{{ post.url | prepend: site.baseurl | replace: '//', '/' }}">{{ post.title }}</a></h2>
<div class="postitem">
{% for cat in post.categories %}
<a href="/{{ cat | xml_escape | downcase }}/" class="no-decoration"><code class="language-plaintext highlighter-rouge">{{ cat | xml_escape }}</code></a>
{% endfor %}
{% for tag in post.tags %}
<code class="posttag"><a href="/tags/#{{ tag | replace: " " , "-" | downcase }}" class="no-decoration">{{ tag | xml_escape }}</a></code>
{% endfor %}
</div>
<time datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date_to_string }}</time>
{% if post.image %}
<p><img src="{{post.image}}" alt=""></p>
{% endif %}
<p>{{ post.content |
replace_first: 'rel="footnote">1</a>' , 'rel="footnote"></a>' |
replace_first: 'rel="footnote">2</a>' , 'rel="footnote"></a>' |
replace_first: 'rel="footnote">3</a>' , 'rel="footnote"></a>' |
replace_first: 'rel="footnote">4</a>' , 'rel="footnote"></a>' |
replace_first: 'rel="footnote">5</a>' , 'rel="footnote"></a>' |
strip_html | truncatewords:50 }}</p>
<!--{% for cat in post.categories %}
<code class="language-plaintext highlighter-rouge">{{ cat | xml_escape }}</code>
{% endfor %}-->
</li>
{% endfor %}
</ul>