Skip to content

Commit

Permalink
make title index for blog
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.macosforge.org/repository/ruby/MacRubyWebsite/trunk@906 23306eb0-4c56-4727-a40e-e92c0eb68959
  • Loading branch information
richkilmer committed Mar 14, 2009
1 parent 5434f5c commit 64bbfbe
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 1 deletion.
5 changes: 4 additions & 1 deletion content/blog/2008/06/06/macruby_0.2.txt
Expand Up @@ -8,7 +8,10 @@ filter:
- erb
- textile
---
After 3 months of development, here comes the second release of MacRuby, 0.2! "Check it out while it's hot!":http://www.macruby.org/trac/wiki/InstallingMacRuby
<% @page[:excerpt] = capture_erb do %>
After 3 months of development, here comes the second release of MacRuby, 0.2! Check it out while it's hot!
<% end %>
<%= RedCloth.new(@page.excerpt).to_html %>

This is an important release which addresses many bugs but also re-implements parts of the runtime using the "CoreFoundation":http://developer.apple.com/corefoundation/ framework.

Expand Down
3 changes: 3 additions & 0 deletions content/blog/2008/06/16/new_build_system.txt
Expand Up @@ -8,7 +8,10 @@ filter:
- erb
- textile
---
<% @page[:excerpt] = capture_erb do %>
MacRuby trunk got a new build system, entirely written with "Rake":http://rake.rubyforge.org/. We managed to replace the previous autotools-based build system with a 570 lines of code Rakefile (which can still be refactored). We didn't really need autotools since MacRuby aims to be installed on only one platform: Mac OS X. Maintaining the autotools files were really difficult, and we are very glad to now have a pure-Ruby build script.
<% end %>
<%= RedCloth.new(@page.excerpt).to_html %>

Building and installing MacRuby is now very simple:

Expand Down
1 change: 1 addition & 0 deletions content/blog/index.txt
Expand Up @@ -5,6 +5,7 @@ dirty: true
filter:
- erb
---
<a style="float:right" href="/blog/title_index.html">Summarize Articles</a>
<h1 class="title"> <%= h(@page.title) %> </h1>
<%
articles = @pages.find(:all, :in_directory => @page.dir, :recursive => true,
Expand Down
18 changes: 18 additions & 0 deletions content/blog/title_index.txt
@@ -0,0 +1,18 @@
---
title: The MacRuby Blog
created_at: 2008-08-02 14:06:40.000000 -06:00
dirty: true
filter:
- erb
---
<a style="float:right" href="/blog/index.html">Full Articles</a>
<h1 class="title"> <%= h(@page.title) %> </h1>
<%
articles = @pages.find(:all, :in_directory => @page.dir, :recursive => true,
:sort_by => "created_at", :reverse => true, :blog_post => true)
articles.delete(@page)
articles.each do |page|
-%>
<h3><%= page.title %></h3>
<%= blog_excerpt(page) %>
<% end -%>

0 comments on commit 64bbfbe

Please sign in to comment.