forked from ev3dev/ev3dev.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
49 lines (45 loc) · 2.37 KB
/
index.html
File metadata and controls
49 lines (45 loc) · 2.37 KB
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
---
title: Projects
excerpt: "This is where we keep a collection of some of the projects that people are working on using ev3dev. We invite you to click through the links below to see what cool stuff ev3dev can do!"
include_masonry: "true"
---
<p class="lead">
This is where we keep a collection of some of the projects that people are working
on using ev3dev. We invite you to click through the links below to see what
cool stuff ev3dev can do!
</p>
<div class="alert alert-info">
{% include /style/icon.html type="info" %}
Would you like your project added to the list? We would!
<a class="alert-link" href="/docs/tutorials/adding-new-project/">Create a page and send us a pull request</a>.
</div>
<div class="row masonry-container" id="project-thumbnail-grid" data-masonry='{ "itemSelector": ".project-thumbnail-container", "columnWidth": ".grid-sizer", "percentPosition": true }'>
<div class="grid-sizer col-xs-12 col-sm-6 col-md-4"></div>
{% for post in site.posts %}
{% if post.categories contains "projects" %}
{% unless post.id == '/projects/2014/03/21/Example-Project' %}
{% assign num_words = 60 %}
<div class="col-xs-12 col-sm-6 col-md-4 project-thumbnail-container">
<div class="thumbnail">
{% if post.thumbnail_override %}
{% assign num_words = 35 %}
<a href="{{ post.url }}">
<img src="{{post.thumbnail_override}}" alt="{{ post.title }}" />
</a>
{% elsif post.youtube_video_id %}
{% assign num_words = 35 %}
<a href="{{ post.url }}">
<img src="http://img.youtube.com/vi/{{post.youtube_video_id}}/mqdefault.jpg" alt="{{ post.title }}" />
</a>
{% endif %}
<div class="caption">
<h3>{{ post.title }}</h3>
<p>{{ post.excerpt | strip_html | truncatewords: num_words }}</p>
<p><a class="btn btn-primary" href="{{ post.url }}">Learn more</a></p>
</div>
</div>
</div>
{% endunless %}
{% endif %}
{% endfor %}
</div>