Skip to content

Commit f8e6d12

Browse files
committed
Only list en news posts in /en/.
1 parent b02396a commit f8e6d12

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

en/feeds/news.rss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<language>en-us</language>
77
<ttl>40</ttl>
88
<description>The latest news from Ruby-Lang.org.</description>
9-
{% for post in site.categories.news %}
9+
{% for post in site.categories.en %}
1010
<item>
1111
<title>{{ post.title }}</title>
1212
<description>{{ post.content | xml_escape }}</description>

en/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ <h1>Ruby is...</h1>
2121

2222
---
2323

24-
{% for post in site.categories.news limit:2 %}
24+
{% for post in site.categories.en limit:2 %}
2525
<div class="post">
2626
<h3><a href="{{ post.url }}">{{ post.title }}</a></h3>
2727

@@ -36,7 +36,7 @@ <h3><a href="{{ post.url }}">{{ post.title }}</a></h3>
3636
<div id="news">
3737
<h3><a href="/en/news/">Other News</a></h3>
3838
<ul>
39-
{% for post in site.categories.news offset:2 limit:3 %}
39+
{% for post in site.categories.en offset:2 limit:3 %}
4040
<li>
4141
<a href="{{ post.url }}">{{ post.title }}</a>
4242
<span class="post-info">Posted By {{ post.author }} on {{ post.date | date_to_string }}</span>
@@ -45,7 +45,7 @@ <h3><a href="/en/news/">Other News</a></h3>
4545
</ul>
4646

4747
<ul>
48-
{% for post in site.categories.news offset:5 limit:3 %}
48+
{% for post in site.categories.en offset:5 limit:3 %}
4949
<li>
5050
<a href="{{ post.url }}">{{ post.title }}</a>
5151
<span class="post-info">Posted By {{ post.author }} on {{ post.date | date_to_string }}</span>

en/news/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
lang: en
55
---
66

7-
{% for post in site.categories.news %}
7+
{% for post in site.categories.en %}
88
<div class="post">
99
<h3><a href="{{ post.url }}">{{ post.title }}</a></h3>
1010

0 commit comments

Comments
 (0)