This repository has been archived by the owner on Nov 10, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 245
/
post.liquid
69 lines (69 loc) · 2.45 KB
/
post.liquid
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
<!DOCTYPE html>
<html lang="en" class="no-js">
{% include head %}
{% if site.banner.text %}
<body class="banner-displayed">
{% else %}
<body>
{% endif %}
{% include menu %}
<div class="container">
<div class="row">
<div class="col-md-8">
<main class="blog">
<article>
<h1>{{ title }}</h1>
{% if author != null %}
by <a href="https://github.com/{{ author }}"><b>{{ contributors[author].name }}</b></a><em> - </em>
{% elsif authors != null %}
by
{% assign members = authors | split: ", " %}
{% for member in members %}
{% if forloop.last == true %}
<a href="https://github.com/{{ member }}"><b>{{ contributors[member].name }}</b></a>
{% else %}
<a href="https://github.com/{{ member }}"><b>{{ contributors[member].name }},</b></a>
{% endif %}
{% endfor %}
<em> - </em>
{% endif %}<em>{{ page.date | dateFormat: "d LLLL yyyy" }}</em>
<br />
{% if original %}
<br />
This post originally appeared on <a href={{original.site.url}}>{{ original.site.name }}</a> on <a href={{original.url}}>{{ original.date | dateFormat: "d LLLL yyyy" }}</a>.
<br />
{% endif %}
<br />
{% if teaser %}
<p>{{ teaser }}</p>
{% endif %}
{{ content }}
<footer>
<p class="text-center">ESLint depends on the support of individuals and companies. <a class="btn btn-default" href="https://opencollective.com/eslint">Become a Sponsor</a></p>
</footer>
</article>
</main>
</div>
<div class="col-md-4 hidden-xs hidden-sm">
<div class="eslint-ad-float-left">
{%include ad %}
</div>
<div>
<h2>Recent Posts</h2>
<ul class="posts">
{% for post in collections.posts limit: 25 %}
{% if post.url != page.url %}
<li>
<a href="{{ post.url | replace: '.html', '' }}">{{ post.data.title }}</a><br>
<span class="date">{{ post.date | dateFormat: "d LLLL yyyy" }}</span>
</li>
{% endif %}
{% endfor %}
</ul>
</div>
</div>
</div>
</div>
{% include footer %}
</body>
</html>