Skip to content

Commit 734ecc6

Browse files
committed
Merge pull request ev3dev#65 from ddemidov/skip-example
Do not include example project into projects page
2 parents 4bb1a51 + 060b1f4 commit 734ecc6

3 files changed

Lines changed: 25 additions & 20 deletions

File tree

_includes/header.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@
2222
</a>
2323
<ul class="button-dropdown">
2424
<li>
25-
<a href="{{ site.github.url }}/share" title="Discover and share projects that use ev3dev">Share</a>
25+
<a href="{{ site.github.url }}/projects" title="Discover projects that use ev3dev">Projects</a>
26+
</li>
27+
<li>
28+
<a href="{{ site.github.url }}/share" title="Share projects that use ev3dev">Share</a>
2629
</li>
2730
<li>
2831
<a href="{{ site.github.url }}/contribute" title="How to contribute to ev3dev">Contribute</a>

projects/index.md

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,25 @@ Would you like your project added to the list? We would!
1212
<ul id="projects-list">
1313
{% for post in site.posts %}
1414
{% if post.categories contains "projects" %}
15-
<li>
16-
<div class="project-tile-title">
17-
<h4>
18-
<a href="{{ site.github.url }}{{ post.url }}">{{ post.title }}</a>
19-
</h4>
20-
</div>
21-
{% assign num_words = 40 %}
22-
{% if post.youtube_video_id %}
23-
{% assign num_words = 20 %}
24-
<a href="{{ site.github.url }}{{ post.url }}">
25-
<img class="project-tile-img" src="http://img.youtube.com/vi/{{post.youtube_video_id}}/mqdefault.jpg" />
26-
</a>
27-
{% endif %}
28-
<span class="project-tile-excerpt">
29-
{{ post.excerpt | truncatewords: num_words }}
30-
</span>
31-
</li>
15+
{% unless post.id == '/projects/2014/03/21/Example-Project' %}
16+
<li>
17+
<div class="project-tile-title">
18+
<h4>
19+
<a href="{{ site.github.url }}{{ post.url }}">{{ post.title }}</a>
20+
</h4>
21+
</div>
22+
{% assign num_words = 40 %}
23+
{% if post.youtube_video_id %}
24+
{% assign num_words = 20 %}
25+
<a href="{{ site.github.url }}{{ post.url }}">
26+
<img class="project-tile-img" src="http://img.youtube.com/vi/{{post.youtube_video_id}}/mqdefault.jpg" />
27+
</a>
28+
{% endif %}
29+
<span class="project-tile-excerpt">
30+
{{ post.excerpt | truncatewords: num_words }}
31+
</span>
32+
</li>
33+
{% endunless %}
3234
{% endif %}
3335
{% endfor %}
3436
</ul>

share.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ ev3dev.org Projects Page
1313
We currently have a [projects page] where you can browse projects that have been
1414
built using ev3dev. You can add your own too!
1515

16-
{% assign project = site.categories.projects | first %}
17-
Here is the most recent project ([more about this project...]({{ site.github.url }}{{ project.url}})).
16+
{% assign project = site.categories.projects | last %}
17+
Here is the sample project ([more about this project...]({{ site.github.url }}{{ project.url}})).
1818

1919
###{{ project.title }}
2020

0 commit comments

Comments
 (0)