This repository has been archived by the owner on Oct 20, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
/
blog.html
45 lines (45 loc) · 1.78 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
---
layout: base
title: MHV community blog
permalink: blog/
---
<article class="container">
<h1>{{ page.title }}</h1>
{% for post in site.posts %}
{% unless post.categories contains 'projects' %}
{% unless post.draft %}
<section class="index">
{% if site.data.members[post.author]['hackergotchi'] %}
<img src="/files/hackergotchis/{{ site.data.members[post.author]['hackergotchi'] }}" class="avatar">
{% endif %}
<div>
<h2 class="title"><a href="{{ post.url }}" rel="prefetch">{{ post.title }}</a></h2>
<p>{{ post.excerpt }}</p>
<div class="meta">
Written By <address>{{ site.data.members[post.author]['name'] }}</address> —
<time pubdate datetime="{{ post.date | date: "%Y-%d-%B" }}" title="{{ post.date | date: "%B %d, %Y" }}">{{ post.date | date: "%B %d, %Y" }}</time><br>
{% if post.categories contains 'news' %}
<span class="news-item">News</span>
{% elsif post.categories contains 'events' %}
<span class="event-item">Event</span>
{% endif %}
</div>
</div>
<hr>
</section>
{% endunless %}
{% endunless %}
{% endfor %}
<section class="pagination" style="text-align:center">
{% if paginator.previous_page %}
{% if paginator.previous_page == 1 %}
<a href="/" class="btn btn-outline">‹ Newer</a>
{% else %}
<a href="/page{{ paginator.previous_page }}" class="btn btn-outline">‹ Newer</a>
{% endif %}
{% endif %}
{% if paginator.next_page %}
<a href="/page{{ paginator.next_page }}" class="btn btn-outline">Older ›</a>
{% endif %}
</section>
</article>