Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
52 lines (52 sloc) 1.76 KB
---
layout: default
title: articles d'exemples et astuces d'utilisation du framework ruby on rails
---
{% assign first_post = site.posts.first %}
<div id="post">
<h1><a href="{{ first_post.url }}">{{ first_post.title }}</a></h1>
<p class="infos">
publié le {{ first_post.date | date:"%d/%m/%Y" }}
par {{ first_post.auteur }}
</p>
<p>{{ first_post.chapo }}</p>
<p class="more">
<a href="{{ first_post.url }}">Lire la suite &raquo;</a>
</p>
</div>
<div id="articles-recents" class="span-17 last">
{% for recent_post in site.posts limit:2 offset:1 %}
<div class="recent-post span-8 {% if forloop.first %}append-1{% else %}last{% endif %}">
<h3><a href="{{ recent_post.url }}">{{ recent_post.title }}</a></h3>
<p class="infos">
publié le {{ recent_post.date | date:"%d/%m/%Y" }}
par {{ recent_post.auteur }}
</p>
<p>{{ recent_post.chapo }}</p>
<p class="more">
<a href="{{ recent_post.url }}">Lire la suite &raquo;</a>
</p>
</div>
{% endfor %}
{% for recent_post in site.posts limit:2 offset:3 %}
<div class="recent-post span-8 {% if forloop.first %}append-1{% else %}last{% endif %}">
<h3><a href="{{ recent_post.url }}">{{ recent_post.title }}</a></h3>
<p class="infos">
publié le {{ recent_post.date | date:"%d/%m/%Y" }}
par {{ recent_post.auteur }}
</p>
<p>{{ recent_post.chapo }}</p>
<p class="more">
<a href="{{ recent_post.url }}">Lire la suite &raquo;</a>
</p>
</div>
{% endfor %}
</div>
<div id="archives" class="span-17 last">
<h2>archives</h2>
<ul>
{% for post in site.posts %}
<li><a href="{{ post.url }}">{{ post.title }}</a><span>{{ post.date | date:"%d/%m/%Y" }}</span></li>
{% endfor %}
</ul>
</div>