Restructure the site to allow for i18n

This commit is contained in:
Samuel Shifterovich
2018-11-29 16:46:11 +01:00
parent a58b5811aa
commit 7262d7b1f2
15 changed files with 313 additions and 272 deletions

View File

@ -30,7 +30,7 @@
{% endif %}
</a>
{% if include.tor %}
<a class="mb-1" data-toggle="tooltip" data-placement="bottom" data-original-title="{{include.tor}} Requires specific software to access: torproject.org" href="{{include.tor}}"><img alt="Tor" src="assets/img/layout/tor.png" width="35"></a>
<a class="mb-1" data-toggle="tooltip" data-placement="bottom" data-original-title="{{include.tor}} Requires specific software to access: torproject.org" href="{{include.tor}}"><img alt="Tor" src="/assets/img/layout/tor.png" width="35"></a>
{% endif %}
{% if include.extra_button %}

View File

@ -1,6 +0,0 @@
{% assign lang = site.data.lang.[include.lang].kdl %}
{% assign english = site.data.lang.en.kdl %}
# {{ lang.title | default: english.title }}
## {{ lang.subtitle | default: english.subtitle }}
{{ lang.description | default: english.description }}

View File

@ -0,0 +1,15 @@
{% assign lang = site.data.lang.[include.lang].nothing_to_hide %}
{% assign en = site.data.lang.en.nothing_to_hide %}
<div class="page-header">
<h1>{{ lang.title | default: en.title }}</h1>
</div>
<blockquote class="blockquote">
<p>
<a href="http://www.ted.com/talks/glenn_greenwald_why_privacy_matters" title="Glenn Greenwald - {{ lang.talk_name | default: en.talk_name }} - TED Talk"><img
src="/assets/img/layout/Glenn-Greenwald-Why-privacy-matters.jpg" class="img-fluid float-right ml-2" alt="Glenn Greenwald: Why privacy matters"></a>
{{ lang.quote | default: en.quote }}
</p>
<footer class="blockquote-footer">Glenn Greenwald in <cite title="{{ lang.talk_name | default: en.talk_name }} - TED Talk"><a href="http://www.ted.com/talks/glenn_greenwald_why_privacy_matters">
{{ lang.talk_name | default: en.talk_name }} - TED Talk</a></cite></footer>
</blockquote>

2343
_includes/index.html Normal file

File diff suppressed because it is too large Load Diff