forked from BitDevsNYC/BitDevsNYC.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·49 lines (47 loc) · 1.74 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
---
layout: default
title: Home
---
<div class="Home">
<p class="Home-about">
BitDevs is a community for those interested in discussing and participating in the research and development of Bitcoin and related protocols.
</p>
<div class="Home-posts">
<h2 class="Home-posts-title">Upcoming and Recent Events</h2>
{% assign event_posts = 7 %}
{% assign counter = 0 %}
{% for post in site.posts %}
{% if post.type == "socratic" or post.type == "whitepaper"%}
<div class="Home-posts-post">
<span class="Home-posts-post-date">{{ post.date | date_to_string }}</span>
<span class="Home-posts-post-arrow">»</span>
<a class="Home-posts-post-title" href="{{ post.url }}">{{ post.title }}</a>
</div>
{% assign counter = counter | plus: 1 %}
{% if counter == event_posts %}
{% break %} {% comment %}exit the for loop{% endcomment %}
{% endif %}
{% endif %}
{% endfor %}
<p><a href="/events.html">See all events</a></p>
</div>
<div class="Home-posts">
<h2 class="Home-posts-title">Recent Blog Posts</h2>
{% assign blog_posts = 3 %}
{% assign counter = 0 %}
{% for post in site.posts %}
{% if post.type == "blog" %}
<div class="Home-posts-post">
<span class="Home-posts-post-date">{{ post.date | date_to_string }}</span>
»
<a class="Home-posts-post-title" href="{{ post.url }}">{{ post.title }}</a>
</div>
{% assign counter = counter | plus: 1 %}
{% if counter == blog_posts %}
{% break %} {% comment %}exit the for loop{% endcomment %}
{% endif %}
{% endif %}
{% endfor %}
<p><a href="/blog.html">See all blog posts</a></p>
</div>
</div>