Skip to content

Commit 221e60a

Browse files
authored
Merge pull request #716 from lqez/keep-clean-root
Move index files into their own language directories
2 parents c7d5b71 + 3dd1596 commit 221e60a

File tree

7 files changed

+8
-0
lines changed

7 files changed

+8
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
22
layout: index
33
lang: es
4+
permalink: /es/
45
---
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
22
layout: index
33
lang: fr
4+
permalink: /fr/
45
---
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
22
layout: index
33
lang: id
4+
permalink: /id/
45
---
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
22
layout: index
33
lang: ko
4+
permalink: /ko/
45
---
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
22
layout: index
33
lang: ta
4+
permalink: /ta/
45
---
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
22
layout: index
33
lang: zh-cn
4+
permalink: /zh-cn/
45
---

_layouts/index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ <h1 class="alt-h1">{{ site.title }}</h1>
2323
<div class="gutter-sm d-flex flex-wrap flex-items-stretch pb-md-6">
2424
{% assign articles = site.articles | where: 'lang', page.lang | sort: 'order' %}
2525
{% for article in articles %}
26+
{% if article.layout != 'index' %}
2627
<div class="col-12 col-sm-9 mx-auto col-md-6 mt-4 mt-lg-5">
2728
<a href="{{ article.url | relative_url }}" class="guide-cover {{ article.class }} card height-full d-block">
2829

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

4243
</a>
4344
</div>
45+
{% endif %}
4446
{% endfor %}
4547
</div>
4648
</div>

0 commit comments

Comments
 (0)