forked from bitcoinorghk/bitcoinhk.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
blog.html
33 lines (31 loc) · 1.13 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
---
layout: page
title: Blog
background: "url(/images/bahk-talk-01.png) #FF0000"
permalink: /blog/
navigation: visible
---
<div class="meetups">
{% assign curDate = site.time | date: '%s' %}
{% for post in site.posts %}
{% if post.layout == "blog" %}
{% assign postStartDate = post.date | date: '%s' %}
{% if curDate > postStartDate %}
<a class="post-link white-box" href="{{ post.url | prepend: site.baseurl }}">
<div class="preview" style="background:{{ post.background }}">
<div class="date">
<small>{{ post.date | date: "%b" }}</small>
{{ post.date | date: "%-d" }}
</div>
</div>
<h3>{{ post.title }}</h3>
{% if post.subtitle %}
<p>{{ post.subtitle }}</p>
{% else %}
<p>{% if post.author %}Written by +{{ post.author }}{% endif %}</p>
{% endif %}
</a>
<br>
{% endif %}
{% endif %}
{% endfor %}