Skip to content

Commit a175d08

Browse files
committed
Fixes language switch for overview layouts
See scala#129
1 parent fa6f0aa commit a175d08

File tree

7 files changed

+12
-0
lines changed

7 files changed

+12
-0
lines changed

_layouts/overview.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@
99

1010
<div class="span10">{% if page.title %}<h1>{{ page.title }}</h1>{% else %}<h1>{{ site.title }}</h1>{% endif %}</div>
1111

12+
{% for pg in site.posts %}
13+
{% if pg.overview == page.overview and pg.languages %}
14+
{% assign languages = pg.languages %}
15+
{% endif %}
16+
{% endfor %}
17+
1218
{% for pg in site.pages %}
1319
{% if pg.overview == page.overview and pg.languages %}
1420
{% assign languages = pg.languages %}

overviews/core/_posts/2010-09-07-collections.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ title: Scala's Collections Library
44
disqus: true
55
partof: collections
66
overview: collections
7+
languages: [ja]
78
---

overviews/core/_posts/2010-11-30-actors.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
layout: overview
33
title: The Scala Actors API
44
overview: actors
5+
languages: [es]
56
---
67

78
**Philipp Haller and Stephen Tu**

overviews/core/_posts/2012-03-27-parallel-collections.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ title: Scala's Parallel Collections Library
44
disqus: true
55
partof: parallel-collections
66
overview: parallel-collections
7+
languages: [es, ja]
78
---

overviews/core/_posts/2012-09-20-futures.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ title: Futures and Promises
44
label-color: success
55
label-text: New in 2.10
66
overview: futures
7+
languages: [ja]
78
---
89

910
**By: Philipp Haller, Aleksandar Prokopec, Heather Miller, Viktor Klang, Roland Kuhn, and Vojin Jovanovic**

overviews/core/_posts/2012-09-21-string-interpolation.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ disqus: true
55
label-color: success
66
label-text: New in 2.10
77
overview: string-interpolation
8+
languages: [es, ja]
89
---
910

1011
**Josh Suereth**

overviews/core/_posts/2012-11-03-value-classes.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ title: Value Classes and Universal Traits
44
label-color: success
55
label-text: New in 2.10
66
overview: value-classes
7+
languages: [ja]
78
---
89

910
**Mark Harrah**

0 commit comments

Comments
 (0)