forked from hackercouch/hackercouch
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
44 lines (41 loc) · 1.16 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
---
layout: default
---
<div class="home">
<h1 class="page-heading">Couchsurfing for Hackers, by Hackers</h1>
<table class="post-list">
<thead>
<th>Hacker</th>
<th>Location</th>
<th>Social</th>
<th colspan=2>Info</th>
</thead>
<tbody>
{% for couch in site.couches %}
<tr>
<td>
{% assign name = couch.relative_path|remove:"_couches/"|remove_first:".md" %}
<a href="{{couch.url}}" title="{{name}}">
{{ name }}
</a>
</td>
{% assign country = couch.country | upcase %}
<td>{{couch.city}}, {{site.data.countries[country] | downcase | capitalize}}</td>
<td>{% include social.html tooltip-direction="e" %}</td>
<td colspan=2>
{{ couch.content | strip_html | truncatewords: 30}}
</td>
</tr>
{% endfor %}
</tbody>
</table>
<div>
You can click on the name to see the complete info provided.
We also serve all the information over our API at
<a href="/couches.json">/couches.json</a>
<p>
<br>
<a class="btn" href="/add.html" title="Add your couch">Add your Couch</a>
</p>
</div>
</div>