Skip to content

Commit 37166fe

Browse files
committed
define languages in the _config.yml
1 parent 1c084ea commit 37166fe

4 files changed

Lines changed: 14 additions & 3 deletions

File tree

‎_config.yml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,8 @@ navigation:
2727
url: /package-index/
2828
- text: RESTful WP-CLI
2929
url: /restful/
30+
languages:
31+
- label: English
32+
path: /
33+
- label: Japanese
34+
path: /ja/

‎_includes/header.html‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ <h2>A <em>RESTful</em> command line interface for WordPress</h2>
3232
<h2>A command line interface for WordPress</h2>
3333
{% endif %}
3434

35-
{% include navigation.html %}
35+
{% include navigation.html %}
36+
{% include languages.html %}
3637
</div>
3738
</header>
3839

3940
<div class="container">
4041
<section id="main_content">
41-

‎_includes/languages.html‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<select class="languages">
2+
<option value="">Change Language</option>
3+
{% for lang in site.languages %}
4+
<option value="{{ lang.path }}">{{ lang.label }}</option>
5+
{% endfor %}
6+
</select>

‎assets/css/stylesheet.css‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,7 @@ hr:after,
696696
position: relative;
697697
}
698698

699-
.cf .container select
699+
.cf .container .languages
700700
{
701701
position: absolute;
702702
top: 0px;

0 commit comments

Comments
 (0)