forked from bitcoinorghk/bitcoinhk.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
136 lines (115 loc) · 4.45 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
---
layout: default
background: "url(/images/bahk-nightlineHKpic.png) #FF0000"
excerpt: "Fostering and promoting Bitcoin and its technology in Hong Kong."
---
<header>
<div class="c">
<h1>The Bitcoin Association of Hong Kong</h1>
<p class="lead">香港比特幣協會</p>
</div>
</header>
<!-- END COVER -->
</div>
</div>
<section class="home">
<div class="c">
<h2>Upcoming Meetups</h2>
<div class="meetups">
{% assign curDate = site.time | date: '%s' %}
{% for post in site.posts %}
{% if post.layout != "members" %}
{% assign postStartDate = post.date | date: '%s' %}
{% if postStartDate > curDate %}
<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>
<p>{{ post.date | date: "%H:%M" }} at {{ post.address }}</p>
</a>
<br>
{% endif %}
{% endif %}
{% endfor %}
</div>
<br>
<h2>Recent blog posts</h2>
<div class="meetups">
{% assign curDate = site.time | date: '%s' %}
{% assign count = 0 %}
{% assign recent_limit = 5 %}
{% 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.layout == "meetup" %}
<p>{{ post.date | date: "%H:%M" }} HKT {% if post.address %}at {{ post.address }}{% endif %}</p>
{% else %}
{% if post.subtitle %}
<p>{{ post.subtitle }}</p>
{% else %}
<p>{% if post.author %}Written by +{{ post.author }}{% endif %}</p>
{% endif %}
{% endif %}
</a>
<br />
{% assign count = count | plus: 1 %}
{% if count >= recent_limit %}
{% break %}
{% endif %}
{% endif %}
{% endif %}
{% endfor %}
</div>
<p><a href="/blog/">All Blog Posts</a></p>
<h2>Recent happenings</h2>
<div class="meetups">
{% assign curDate = site.time | date: '%s' %}
{% assign count = 0 %}
{% assign recent_limit = 3 %}
{% for post in site.posts %}
{% if post.layout == "meetup" %}
{% 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.layout == "meetup" %}
<p>{{ post.date | date: "%H:%M" }} HKT {% if post.address %}at {{ post.address }}{% endif %}</p>
{% else %}
{% if post.subtitle %}
<p>{{ post.subtitle }}</p>
{% else %}
<p>{% if post.author %}Written by +{{ post.author }}{% endif %}</p>
{% endif %}
{% endif %}
</a>
<br>
{% assign count = count | plus: 1 %}
{% if count >= recent_limit %}
{% break %}
{% endif %}
{% endif %}
{% endif %}
{% endfor %}
</div>
<p><a href="/meetups/">All Meetups</a> • <a href="/devs/">All Devs Meetups</a></p>
</div>
</section>