-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
44 lines (41 loc) · 1.59 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
---
title: Index
---
<div class="section-title">Languages</div>
<div class="section-body">
<ul>
{% for lang in site.data.lang-names %}
{% assign langs = langs | append: lang[1] | append: "," %}
{% endfor %}
{% assign langs = langs | split: "," | sort_natural %}
{% for lang in langs %}
{% assign collection = site.collections | where_exp: "item", "site.data.lang-names[item.label] == lang" %}
<li><a href="{{ collection[0].label | prepend: "/" | append: "/" }}">{{ lang }}</a></li>
{% endfor %}
</ul>
</div>
<div class="section-title">Translating</div>
<div class="section-body">
<p>
You can translate on <a href="https://crowdin.com/project/TWiLightMenu">Crowdin</a> or using Crowdin's In-Context on the following pages:
</p>
<ul>
{% assign index = site.ic | where_exp: "item", "item.url contains 'index.html'" %}
{% if index[0] %}
{% assign file = index[0].url | split: "/" | last %}
{% assign title = site.en | where_exp: "item", "item.url contains file" %}
<li><a href="{{ index[0].url | remove: "index.html" }}">{{ title[0].title }}</a></li>
{% endif %}
{% for item in site.ic %}
{% unless item.url contains "index.html" %}
{% assign file = item.url | split: "/" | last %}
{% assign title = site.en | where_exp: "item", "item.url contains file" %}
<li><a href="{{ item.url | remove: ".html" }}">{{ title[0].title }}</a></li>
{% endunless %}
{% endfor %}
</ul>
</div>
<div class="section-title"><p>Source Code</p></div>
<div class="section-body">
<p>The source code is on <a href="https://github.com/DS-Homebrew/twilight-manual">GitHub</a>.</p>
</div>