content/home.erb
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 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 |
----- permalink: home filters_pre: - erb title: Home type: page feed: '/' feed_url: "http://feeds.feedburner.com/h3rald" feed_title: 'Latest Articles' ----- <% max_items = 5 all_articles = latest_articles.length latest = latest_articles 5 popular = popular_articles 5 all_projects = @items.select{|a| a[:type] == 'project'}.length %> <section id="topbar"> <nav id="social"> <ul> <li><a href="http://www.h3rald.com/rss/" rel="external"><img src="/images/social/rss.png" alt="RSS" /></a></li> <li><a href="http://blog.h3rald.com/" rel="external"><img src="/images/social/posterous.png" alt="posterous" /></a></li> <li><a href="http://www.twitter.com/h3rald/" rel="external"><img src="/images/social/twitter.png" alt="RSS" /></a></li> <li><a href="http://it.linkedin.com/in/fabiocevasco" rel="external"><img src="/images/social/linkedin.png" alt="linkedin" /></a></li> <li><a href="http://www.delicious.com/h3rald/" rel="external"><img src="/images/social/delicious.png" alt="delicious" /></a></li> <li><a href="http://www.reddit.com/user/h3rald/" rel="external"><img src="/images/social/reddit.png" alt="reddit" /></a></li> </ul> </nav> <aside id="search"> <section id="search_form"></section> </aside> </section><!-- #topbar end --> <section id="search_results"></section> <section class="left" id="main-content"> <%= render 'article_intro', :item => latest[0], :classes => "three-columns hyphenate", :extended => true %> <section class="clear-left left" id="#main-content-left"> <script src="http://widgets.twimg.com/j/2/widget.js"></script> <section id="twitter"> <script> new TWTR.Widget({ version: 2, type: 'profile', rpp: 4, interval: 6000, width: 280, height: 250, theme: { shell: { background: '#ffffff', color: '#333333' }, tweets: { background: '#ffffff', color: '#333333', links: '#3b6deb' } }, features: { scrollbar: false, loop: false, live: false, hashtags: true, timestamp: true, avatars: false, behavior: 'all' } }).render().setUser('h3rald').start(); </script> </section><!-- #twitter end --> <%= render 'article_intro', :item => latest[3], :classes => "hyphenate", :extended => false %> <article class="feature"> <header> <p>FEATURED CONTENT</p> <h1><a href="/holidays/">Holidays in Italy?</a></h1> <h2>Yes, I am really renting my house in the countryside!</h2> </header> <section class="hyphenate"> <img src="/images/sessarego.jpg" alt="Sessarego" style="margin: 0 5px;" /> <p>Looking for a peaceful and relaxing holiday in the Italian Riviera? I'm renting part of my family country home in the center of the old village of Sessarego, on a peaceful hill a few minutes away from Bogliasco, a small coastal town on the Golfo Paradiso. </p> <p>The center of Genoa can be reached by car, bus or train in about 30 minutes and a lot of tourist locations like Camogli, Rapallo, Santa Margherita and Portofino are just a few train stops away.</p> </section> </article> </section><!-- #main-content-left end --> <section class="right border-left" id="main-content-right"> <%= render 'article_intro', :item => latest[1], :classes => "hyphenate", :extended => false %> <%= render 'article_intro', :item => latest[2], :classes => "hyphenate", :extended => false %> <%= render 'article_intro', :item => latest[4], :classes => "hyphenate", :extended => false %> </section><!-- #main-content-right end --> </section><!-- #main-content end --> <section class="right" id="secondary-content"> <article id="popular-1"> <header> <h1><a href="#">10 programming languages worth checking out</a></h1> <h2>A quick comparison of 10 non-mainstream programming languages</h2> <p class="pubdate"><time>September 4th 2010</time></p> <p class="author">By <em>Fabio Cevasco</em></p> </header> <section class="two-columns hyphenate"> <p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.</p> <p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.</p> <p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.</p> <p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.</p> </section> </article> <article class="feature"> <header> <p>FEATURED CONTENT</p> <h1><a href="/glyph/">Glyph – Rapid Document Authoring Framework</a></h1> <h2>A free and extensible solution for personal publishing, 100% open source!</h2> </header> <section class="hyphenate"> <img src="/images/glyph.png" alt="Glyph Logo" class="img-right" /> <p>With Glyph, creating and maintaining any kind of document becomes as easy as... programming. </p> <p>Glyph enables you to minimize text duplication, focus on content rather than presentation, manage references seamlessly and automate tedious tasks through a simple but effective macro language, specifically geared towards customization and extensibility.</p> </section> </article> <section class="left border-right" id="secondary-content-left"> <article id="popular-2"> <header> <h1><a href="#">Herald (Vim Color Scheme)</a></h1> <h2>My very own VIM color scheme. Featuring 256, 16 and 8 color support, high readability and... pretty colors!</h2> <p class="pubdate"><time>September 4th 2010</time></p> <p class="author">By <em>Fabio Cevasco</em></p> </header> <section class="hyphenate"> <p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.</p> <p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.</p> </section> </article> </section><!-- #secondary-content-left end --> <section class="right" id="secondary-content-right"> <article class="right popular3"> <header> <h1><a href="#">A closer look at Komodo Edit</a></h1> <h2>A comprehensive review of the free editor from ActiveState</h2> <p class="pubdate"><time>September 4th 2010</time></p> <p class="author">By <em>Fabio Cevasco</em></p> </header> <section class="hyphenate"> <p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.</p> <p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.</p> </section> </article> </section><!-- #secondary-content-right end --> </section><!-- #secondary-content-end --> |