Skip to content

Commit a15b537

Browse files
committed
Display the actual posts.
1 parent d0552d2 commit a15b537

File tree

1 file changed

+18
-44
lines changed

1 file changed

+18
-44
lines changed

index.html

Lines changed: 18 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -18,61 +18,35 @@
1818

1919
---
2020

21+
{% for post in site.categories.news limit:2 %}
2122
<div class="post">
22-
<h3><a href="/en/news/2011/08/01/ruby-1-9-3-preview1-has-been-released/">Ruby 1.9.3 preview1 has been released</a></h3>
23+
<h3><a href="{{ post.url }}">{{ post.title }}</a></h3>
2324

24-
<p>Ruby 1.9.3 preview1 has been released. This is a first preview of next version and there're still minor known issues.
25-
But it will be fixed in next release, Ruby 1.9.3-p0.</p>
26-
<p>See <a href="http://svn.ruby-lang.org/repos/ruby/tags/v1_9_3_preview1/ChangeLog">ChangeLogs</a> and <a href="http://svn.ruby-lang.org/repos/ruby/tags/v1_9_3_preview1/NEWS">NEWS</a> for the descriptions.</p>
25+
{{ post.content | strip_html | truncatewords: 25 }}
2726

28-
<p><a href="/en/news/2011/08/01/ruby-1-9-3-preview1-has-been-released/">Continue&#160;Reading&#8230;</a></p>
27+
<p><a href="{{ post.url }}">Continue Reading...</a></p>
2928

30-
<p class="post-info">Posted by Moru on 01 Aug 2011</p>
29+
<span class="post-info">Posted By {{ post.author }} on {{ post.date | date_to_string }}</span>
3130
</div>
32-
33-
34-
<div class="post">
35-
<h3><a href="/en/news/2011/07/15/ruby-1-9-2-p290-is-released/">Ruby 1.9.2-p290 is released</a></h3>
36-
37-
<p>Ruby 1.9.2-p290 is released.</p>
38-
<p>This release doesn't include any security fixes, but many bugs are fixed in this release.</p>
39-
40-
<p><a href="/en/news/2011/07/15/ruby-1-9-2-p290-is-released/">Continue&#160;Reading&#8230;</a></p>
41-
42-
<p class="post-info">Posted by Shota Fukumori on 15 Jul 2011</p>
43-
</div>
44-
45-
31+
{% endfor %}
4632

4733
<div id="news">
4834
<h3><a href="/en/news/">Other News</a></h3>
4935
<ul>
50-
<li>
51-
<a href="/en/news/2011/07/02/ruby-1-8-7-p352-released/">Ruby 1.8.7-p352 released</a>
52-
<span class="post-info">Posted by Urabe Shyouhei on 02 Jul 2011</span>
53-
</li>
54-
<li>
55-
<a href="/en/news/2011/02/22/planned-maintenance-of-redmine-ruby-lang-org/">Planned maintenance of redmine.ruby-lang.org</a>
56-
<span class="post-info">Posted by Yugui on 22 Feb 2011</span>
57-
</li>
36+
{% for post in site.categories.news offset:2 limit:3 %}
5837
<li>
59-
<a href="/en/news/2011/02/18/exception-methods-can-bypass-safe/">Exception methods can bypass $SAFE</a>
60-
<span class="post-info">Posted by Urabe Shyouhei on 18 Feb 2011</span>
61-
</li>
38+
<a href="{{ post.url }}">{{ post.title }}</a>
39+
<span class="post-info">Posted By {{ post.author }} on {{ post.date | date_to_string }}</span>
40+
</li>
41+
{% endfor %}
6242
</ul>
63-
<ul>
64-
<li>
65-
<a href="/en/news/2011/02/18/fileutils-is-vulnerable-to-symlink-race-attacks/">FileUtils is vulnerable to symlink race attacks</a>
66-
<span class="post-info">Posted by Urabe Shyouhei on 18 Feb 2011</span>
67-
</li>
68-
<li>
69-
<a href="/en/news/2010/12/25/ruby-1-9-2-p136-is-released/">Ruby 1.9.2-p136 is released</a>
70-
<span class="post-info">Posted by Yugui on 25 Dec 2010</span>
71-
</li>
43+
44+
<ul>
45+
{% for post in site.categories.news offset:5 limit:3 %}
7246
<li>
73-
<a href="/en/news/2010/12/25/ruby-1-8-7-p330-released/">Ruby 1.8.7-p330 released</a>
74-
<span class="post-info">Posted by Urabe Shyouhei on 25 Dec 2010</span>
75-
</li>
47+
<a href="{{ post.url }}">{{ post.title }}</a>
48+
<span class="post-info">Posted By {{ post.author }} on {{ post.date | date_to_string }}</span>
49+
</li>
50+
{% endfor %}
7651
</ul>
77-
<p class="more"><a href="/en/news/">More&#160;News&#8230;</a></p>
7852
</div>

0 commit comments

Comments
 (0)