Updated tag pages; Fixed minor JS issues.
h3rald h3rald@h3rald.com
Mon, 31 Aug 2009 15:08:42 +0200
43 files changed,
161 insertions(+),
81 deletions(-)
jump to
M
content/articles/10-programming-languages.textile
→
content/articles/10-programming-languages.textile
@@ -320,7 +320,8 @@
Even if you're particularly devoted to one of the languages mentioned above, it is normal to be curious about what else is out there. As the end of the year approaches, I find myself thinking about learning – or at least become acquainted with – some less known, more experimental, programming languages. I was originally planning on learning another programming language as a New Year's Resolution, which is quite common among programmers. The most difficult task turned out to be _choosing_ a particular language: there are so many out there which makes it very hard to decide. -This article deals with ten possible candidates, and it's far from being an exhaustive list. The programming languages described henceforth are very different from each other, but they all have one thing in common: they all stimulate my curiosity in their own, very different ways.* "Haskell":#haskell +This article deals with ten possible candidates, and it's far from being an exhaustive list. The programming languages described henceforth are very different from each other, but they all have one thing in common: they all stimulate my curiosity in their own, very different ways. +* "Haskell":#haskell * "Erlang":#erlang * "Io":#io * "PLT Scheme":#plt-scheme
M
lib/utils.rb
→
lib/utils.rb
@@ -11,9 +11,11 @@ meta[:permalink] = tag
pl = (count == 1) ? ' is' : 's are' contents = %{\n#{count} item#{pl} tagged with _#{tag}_: -<% articles_tagged_with('#{tag}').each do |pg| -%>* <span class="<%= pg.attributes[:type] %>_link"> <a href="/articles/<%= pg.attributes[:permalink] %>/"><%= pg.attributes[:title] %></a></span> + <ul> +<% articles_tagged_with('#{tag}').each do |a| +%><%= render 'dated_article', :article => a %> <% end %> +</ul> } # Write html page write_item dir/"#{tag}.textile", meta, contents
M
resources/js/feeds.js
→
resources/js/feeds.js
@@ -56,7 +56,7 @@ content += "<br />tags: ";
var categories = Array(); for (i=0; i<bookmark.t.length; i++) { - categories[i] = "<a href='http://delicious.com/h3rald/"+bookmark.t[i]+"'>"+bookmark.t[i]+"</a> "; + categories[i] = "<a href='http://delicious.com/h3rald/"+bookmark.t[i]+"'>"+bookmark.t[i]+"</a>"; } content += categories.join(', ').replace(/ $/, ''); var dt = $("<span></span>").addClass('feed-item-date').html(format_date(bookmark.dt)+":");
M
resources/js/init.js
→
resources/js/init.js
@@ -13,13 +13,14 @@ while (node.childNodes.length) {
node = node.firstChild; } var text = node.nodeValue; + if (!text) return false; var first_letter = text.substr(0,1); if (first_letter.match(/[a-z]/i)){ node.nodeValue = text.slice(1,text.length); $('<span></span>').addClass('dropcap').html(first_letter).prependTo( first_paragraph ); } }); - Cufon.replace('.dropcap', {fontFamily: 'Mutlu', fontSize: '30px'}); + Cufon.replace('.dropcap', {fontFamily: 'Mutlu', fontSize: '40px'}); }); Cufon.now();