Skip to content

Fixes language switch for overview layouts #134

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 20, 2012
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions _layouts/overview.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@

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

{% for pg in site.posts %}
{% if pg.overview == page.overview and pg.languages %}
{% assign languages = pg.languages %}
{% endif %}
{% endfor %}

{% for pg in site.pages %}
{% if pg.overview == page.overview and pg.languages %}
{% assign languages = pg.languages %}
Expand Down
1 change: 1 addition & 0 deletions overviews/core/_posts/2010-09-07-collections.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ title: Scala's Collections Library
disqus: true
partof: collections
overview: collections
languages: [ja]
---
1 change: 1 addition & 0 deletions overviews/core/_posts/2010-11-30-actors.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
layout: overview
title: The Scala Actors API
overview: actors
languages: [es]
---

**Philipp Haller and Stephen Tu**
Expand Down
1 change: 1 addition & 0 deletions overviews/core/_posts/2012-03-27-parallel-collections.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ title: Scala's Parallel Collections Library
disqus: true
partof: parallel-collections
overview: parallel-collections
languages: [es, ja]
---
1 change: 1 addition & 0 deletions overviews/core/_posts/2012-09-20-futures.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ title: Futures and Promises
label-color: success
label-text: New in 2.10
overview: futures
languages: [ja]
---

**By: Philipp Haller, Aleksandar Prokopec, Heather Miller, Viktor Klang, Roland Kuhn, and Vojin Jovanovic**
Expand Down
1 change: 1 addition & 0 deletions overviews/core/_posts/2012-09-21-string-interpolation.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ disqus: true
label-color: success
label-text: New in 2.10
overview: string-interpolation
languages: [es, ja]
---

**Josh Suereth**
Expand Down
1 change: 1 addition & 0 deletions overviews/core/_posts/2012-11-03-value-classes.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ title: Value Classes and Universal Traits
label-color: success
label-text: New in 2.10
overview: value-classes
languages: [ja]
---

**Mark Harrah**
Expand Down