----- title: Bienvenue noSubMenu: true ----- <% number_of_articles=5 number_of_char_for_resume=800 language=@item_rep.path.sub(/\/Scratch\//,'').sub(/\/.*$/,'') last_articles = articles.select do |a| a.reps[0].path =~ /\/#{language}\// end last_articles=last_articles.sort { |x,y| y[:created_at] <=> x[:created_at] }[0..(number_of_articles-1)] %>
Bonjour et bienvenue sur mon site personnel.
Voici un aperçu† de mes <%= number_of_articles %> derniers articles.
† approximativement les <%= number_of_char_for_resume %> premiers caractères.
<% last_articles.each do |a| %><%= link_to("en lire plus →", a) %>
<% end %>