content/home.textile
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 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 |
-----
permalink: home
filters_pre:
- erb
- redcloth
title: Home
comments: []
date:
tags: []
type: page
toc: true
-----
<%
max_items = 5
get_max_articles = lambda do |sorted|
sorted[sorted.length-(max_items)..sorted.length-1].reverse
end
sorted_l = @site.pages.select{|p| p.attributes[:date] && p.attributes[:type] == 'article'}.sort{|a, b| a.attributes[:date] <=> b.attributes[:date]}
latest = get_max_articles.call sorted_l
sorted_p = @site.pages.select{|p| p.attributes[:date] && p.attributes[:type] == 'article' && p.attributes[:popular]}.sort{|a, b| a.attributes[:date] <=> b.attributes[:date]}
popular = get_max_articles.call sorted_p
%><div class="panel" id="home">
h2. Welcome
This is Fabio Cevasco's web site, featuring his "articles":/#articles and open source "projects":/#projects. Fabio is a full-time technical writer working in Genoa, Italy. In his free time, he enjoys writing (surprise, surprise), reading about technology and programming a little bit in Ruby and other languages.
You can contact him by writing an email to _h3rald [at] h3rald [dot] com_, or through:
* "Twitter":http://www.twitter.com/h3rald
* "LinkedIn":http://www.linkedin.com/pub/dir/Fabio/Cevasco
* "Delicious":http://www.delicious.com/h3rald
* "Facebook":http://www.facebook.com/h3rald
* "Shelfari":http://www.shelfari.com/h3rald
* "FriendFeed":http://friendfeed.com/h3rald
<div class="article-list" id="latest-articles">
h3. Latest Articles
<%
latest.each do |a|
%>
<%= render 'article_item', :article => a %>
<% end %>
</div>
<div class="article-list" id="popular-articles">
h3. Popular Articles
<%
popular.each do |a|
%>
<%= render 'article_item', :article => a %>
<% end %>
</div>
<div class="clearleft"></div>
</div>
<div class="panel" id="archives">
h2. Archives
<div id="search_form"></div>
<div id="search_results"></div>
</div>
<div class="panel" id="projects">
h2. Projects
</div>
<div class="panel" id="about">
h2. About
This is a _minimalist_ web site: I do not care about fancy graphics or nitfy effects. I do care, however, about content and I want you to read what I write comfortably. As you can see, this site has no sidebars: it only has a header, a main column and a footer, exactly where you expect them to be.
This site was designed to work with all the major modern browsers (hint: Internet Explorer 6 is _not_ a modern browser). It validates as XHTML 1.1 Strict and CSS 2.1.
h3. Under the Hood
This site is powered by:
* -A customized version of the "Typo":http://www.typosphere.org blogging engine.-
* -The "Ruby on Rails":http://www.rubyonrails.org web framework for the "Ruby":http://www.ruby-lang.org programming language.-
* -The "MySQL":http://www.mysql.com database engine.-
* -The "Apache":http://www.apache.org web server.-
* Just "Nanoc":http://nanoc.stoneship.org/, <em>"[...] a site compiler written in Ruby for building awesome web sites."</em>
h3. Licensing
My "articles":/#archives and other material available on this web site are lincesed under the _Creative Commons Attribution-Noncommercial-No Derivative Works 3.0 Unported_license. For other uses, contact me.
<p style="text-align:center">
<a rel="license" href="http://creativecommons.org/licenses/by-nc-nd/3.0/"><img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by-nc-nd/3.0/88x31.png" /></a>
</p>
h3. Credits
I'd like to thank the following people for their work, which made this web site possible:
* "Denis Defreyne":http://www.stoneship.org/, for creating the wonderful "Nanoc":http://nanoc.stoneship.org/ site compiler.
* "David J.Perry":http://scholarsfonts.net/, who designed the "Cardo font":http://scholarsfonts.net/cardofnt.html I used for the H3RALD logo.
</div>
|