2010-04-16 11:56:24 +00:00
|
|
|
-----
|
|
|
|
title: Welcome
|
|
|
|
noSubMenu: true
|
|
|
|
-----
|
|
|
|
<%
|
|
|
|
number_of_articles=5
|
2010-04-16 14:31:56 +00:00
|
|
|
number_of_char_for_resume=800
|
2010-04-16 11:56:24 +00:00
|
|
|
language=@item_rep.path.sub(/\/Scratch\//,'').sub(/\/.*$/,'')
|
|
|
|
last_articles = articles.select do |a|
|
|
|
|
a.reps[0].path =~ /\/#{language}\//
|
2010-04-16 14:31:56 +00:00
|
|
|
end
|
|
|
|
last_articles=last_articles.sort { |x,y| y[:created_at] <=> x[:created_at] }[0..(number_of_articles-1)]
|
2010-04-16 11:56:24 +00:00
|
|
|
%>
|
2010-04-16 14:31:56 +00:00
|
|
|
<p>Welcome on my personnal website.</p>
|
|
|
|
|
|
|
|
<p>Here are my <%= number_of_articles %> last posts begining<sup>†</sup>.</p>
|
2010-04-16 16:57:27 +00:00
|
|
|
<p> You can also search the entries with <a href="#tagcloud">tag cloud</a></p>
|
2010-04-16 14:31:56 +00:00
|
|
|
|
|
|
|
<hr/>
|
|
|
|
<p class="small">† approximatively the <%= number_of_char_for_resume %> first characters.</p>
|
|
|
|
|
2010-04-16 11:56:24 +00:00
|
|
|
<% last_articles.each do |a| %>
|
|
|
|
</div>
|
|
|
|
<h1><span class="date"><%= a[:created_at].strftime( @config[:dateFormat][language.intern] ) %></span> <%= link_to(a[:title], a) %></h1>
|
|
|
|
<div class="corps">
|
2010-04-16 14:31:56 +00:00
|
|
|
<%= repair_html ( excerptize( a.reps[0].compiled_content, {:length => number_of_char_for_resume} ) ) %>
|
2010-04-16 15:05:20 +00:00
|
|
|
<p>
|
2010-04-19 06:44:03 +00:00
|
|
|
<%= link_to("Read more →", a) %>
|
2010-04-16 15:05:20 +00:00
|
|
|
</p>
|
2010-04-16 11:56:24 +00:00
|
|
|
<% end %>
|
2010-04-16 16:57:27 +00:00
|
|
|
</div>
|
|
|
|
<a href="#titre">↑ back to top ↑</a>
|
|
|
|
<div class="corps">
|
|
|
|
<h2 id="tagcloud">tag cloud</h2>
|
|
|
|
<%= tagCloud %>
|