[macruby-changes] [906] MacRubyWebsite/trunk/content/blog

source_changes at macosforge.org source_changes at macosforge.org
Fri Mar 13 18:36:37 PDT 2009


Revision: 906
          http://trac.macosforge.org/projects/ruby/changeset/906
Author:   rich at infoether.com
Date:     2009-03-13 18:36:36 -0700 (Fri, 13 Mar 2009)
Log Message:
-----------
make title index for blog

Modified Paths:
--------------
    MacRubyWebsite/trunk/content/blog/2008/06/06/macruby_0.2.txt
    MacRubyWebsite/trunk/content/blog/2008/06/16/new_build_system.txt
    MacRubyWebsite/trunk/content/blog/index.txt

Added Paths:
-----------
    MacRubyWebsite/trunk/content/blog/title_index.txt

Modified: MacRubyWebsite/trunk/content/blog/2008/06/06/macruby_0.2.txt
===================================================================
--- MacRubyWebsite/trunk/content/blog/2008/06/06/macruby_0.2.txt	2009-03-13 23:40:21 UTC (rev 905)
+++ MacRubyWebsite/trunk/content/blog/2008/06/06/macruby_0.2.txt	2009-03-14 01:36:36 UTC (rev 906)
@@ -8,7 +8,10 @@
   - 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.
 

Modified: MacRubyWebsite/trunk/content/blog/2008/06/16/new_build_system.txt
===================================================================
--- MacRubyWebsite/trunk/content/blog/2008/06/16/new_build_system.txt	2009-03-13 23:40:21 UTC (rev 905)
+++ MacRubyWebsite/trunk/content/blog/2008/06/16/new_build_system.txt	2009-03-14 01:36:36 UTC (rev 906)
@@ -8,7 +8,10 @@
   - 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:
 

Modified: MacRubyWebsite/trunk/content/blog/index.txt
===================================================================
--- MacRubyWebsite/trunk/content/blog/index.txt	2009-03-13 23:40:21 UTC (rev 905)
+++ MacRubyWebsite/trunk/content/blog/index.txt	2009-03-14 01:36:36 UTC (rev 906)
@@ -5,6 +5,7 @@
 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,

Added: MacRubyWebsite/trunk/content/blog/title_index.txt
===================================================================
--- MacRubyWebsite/trunk/content/blog/title_index.txt	                        (rev 0)
+++ MacRubyWebsite/trunk/content/blog/title_index.txt	2009-03-14 01:36:36 UTC (rev 906)
@@ -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 -%>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090313/47a1292c/attachment.html>


More information about the macruby-changes mailing list