Skip to content

Commit

Permalink
Merge pull request github#716 from lqez/keep-clean-root
Browse files Browse the repository at this point in the history
Move index files into their own language directories
  • Loading branch information
MikeMcQuaid authored Oct 2, 2018
2 parents c7d5b71 + 3dd1596 commit 221e60a
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions es.html → _articles/es/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
layout: index
lang: es
permalink: /es/
---
1 change: 1 addition & 0 deletions fr.html → _articles/fr/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
layout: index
lang: fr
permalink: /fr/
---
1 change: 1 addition & 0 deletions id.html → _articles/id/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
layout: index
lang: id
permalink: /id/
---
1 change: 1 addition & 0 deletions ko.html → _articles/ko/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
layout: index
lang: ko
permalink: /ko/
---
1 change: 1 addition & 0 deletions ta.html → _articles/ta/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
layout: index
lang: ta
permalink: /ta/
---
1 change: 1 addition & 0 deletions zh-cn.html → _articles/zh-cn/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
layout: index
lang: zh-cn
permalink: /zh-cn/
---
2 changes: 2 additions & 0 deletions _layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ <h1 class="alt-h1">{{ site.title }}</h1>
<div class="gutter-sm d-flex flex-wrap flex-items-stretch pb-md-6">
{% assign articles = site.articles | where: 'lang', page.lang | sort: 'order' %}
{% for article in articles %}
{% if article.layout != 'index' %}
<div class="col-12 col-sm-9 mx-auto col-md-6 mt-4 mt-lg-5">
<a href="{{ article.url | relative_url }}" class="guide-cover {{ article.class }} card height-full d-block">

Expand All @@ -41,6 +42,7 @@ <h3 class="alt-h3 text-bold lh-condensed mb-2 text-black">

</a>
</div>
{% endif %}
{% endfor %}
</div>
</div>
Expand Down

0 comments on commit 221e60a

Please sign in to comment.