Add translations to the main site (+markdown transition) [DON'T MERGE] #621

Closed
ghost wants to merge 22 commits from i18n into master
6 changed files with 33 additions and 26 deletions
Showing only changes of commit 2d80437cd5 - Show all commits

3
_includes/_configure Normal file
View File

@ -0,0 +1,3 @@
{% assign lang = site.data.lang.[include.lang].[include.section] %}
{% assign en = site.data.lang.en.[include.section] %}
{% include langs/{{include.section}} lang=lang en=en %}

5
_includes/content.html Normal file
View File

@ -0,0 +1,5 @@
{% capture md %}
{% include content/{{include.section}}.md lang=page.lang section=include.section %}
{% endcapture %}
{{ md | markdownify }}

View File

@ -0,0 +1,18 @@
{% include _configure section=include.section lang=include.lang %}
<div class="page-header">
<h1>{{ title }}</h1>
</div>
<blockquote class="blockquote">
<p>
<a href="https://www.ted.com/talks/glenn_greenwald_why_privacy_matters" title="Glenn Greenwald - {{ 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: {{ talk_name }}"></a>
{{ quote }}
</p>
<footer class="blockquote-footer">Glenn Greenwald in <cite title="{{ talk_name }} - TED Talk"><a href="https://www.ted.com/talks/glenn_greenwald_why_privacy_matters">{{ talk_name }} - TED Talk</a></cite></footer>
</blockquote>
#### Read also:
- [Nothing to hide argument (Wikipedia)](https://en.wikipedia.org/wiki/Nothing_to_hide_argument)
- [How do you counter the "I have nothing to hide?" argument? (reddit.com)](https://www.reddit.com/r/privacy/comments/3hynvp/how_do_you_counter_the_i_have_nothing_to_hide/)
- ["I've Got Nothing to Hide" and Other Misunderstandings of Privacy (Daniel J. Solove - San Diego Law Review)](https://papers.ssrn.com/sol3/papers.cfm?abstract_id=998565)

View File

@ -1,6 +1,5 @@
{% assign language = site.data.lang.[include.lang].general %}
{% assign english = site.data.lang.en.general %}
{% assign selected = include.lang %}
<div class="container" role="main">
@ -28,29 +27,9 @@
<span class="flag-icon flag-icon-fr" style="margin-left:5px;"></span> <a href="https://privacytools.dreads-unlock.fr">Français</a>
</p>
<!-- end language and darknet selection -->
<!-- end language selection -->
<!-- quote by Glenn Greenwald located below the header -->
<div class="page-header">
<h1>Privacy? I don't have anything to hide.</h1>
</div>
<blockquote class="blockquote">
<p>
<a href="https://www.ted.com/talks/glenn_greenwald_why_privacy_matters" title="Glenn Greenwald - Why privacy matters - 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>
Over the last 16 months, as I've debated this issue around the world, every single time somebody has said to me, "I don't really worry about invasions of privacy because I don't have anything to hide." I always say the same thing to them. I get out a
pen, I write down my email address. I say, "Here's my email address. What I want you to do when you get home is email me the passwords to all of your email accounts, not just the nice, respectable work one in your name, but all of them, because I
want to be able to just troll through what it is you're doing online, read what I want to read and publish whatever I find interesting. After all, if you're not a bad person, if you're doing nothing wrong, you should have nothing to hide." <strong>Not a single person has taken me up on that offer.</strong></p>
<footer class="blockquote-footer">Glenn Greenwald in <cite title="Why privacy matters - TED Talk"><a href="https://www.ted.com/talks/glenn_greenwald_why_privacy_matters">Why privacy matters - TED Talk</a></cite></footer>
</blockquote>
<h4>Read also:</h4>
<ul>
<li><a href="https://en.wikipedia.org/wiki/Nothing_to_hide_argument">Nothing to hide argument (Wikipedia)</a></li>
<li><a href="https://www.reddit.com/r/privacy/comments/3hynvp/how_do_you_counter_the_i_have_nothing_to_hide/">How do you counter the "I have nothing to hide?" argument? (reddit.com)</a></li>
<li><a href="https://papers.ssrn.com/sol3/papers.cfm?abstract_id=998565">'I've Got Nothing to Hide' and Other Misunderstandings of Privacy (Daniel J. Solove - San Diego Law Review)</a></li>
</ul>
<!-- end quote by Glenn Greenwald located below the header -->
{% include content.html section="nothing_to_hide" %}
<!-- Global Mass Surveillance - The Fourteen Eyes -->
@ -1420,20 +1399,20 @@
<h1 id="host" class="anchor"><a href="#host"><i class="fas fa-link anchor-icon"></i></a> Secure Hosting Provider</h1>
<div class="row mb-2">
{% include card.html color="success"
{% include components/card.html color="success"
title="BAHNHOF"
image="assets/img/tools/bahnhof.png"
url="https://www.bahnhof.net/"
description="BAHNHOF is a widely known 'bullet-proof' hosting company utilized by Wikileaks."
%}
{% include card.html color="primary"
{% include components/card.html color="primary"
title="Colocation: DataCell"
image="assets/img/tools/datacell.png"
url="https://datacell.is/"
description="DataCell is a data center providing secure colocating in Switzerland and Iceland."
%}
{% include card.html color="warning"
{% include components/card.html color="warning"
title="VPS/Web Hosting: Orange Website"
image="assets/img/tools/orange_hosting.png"
url="https://www.orangewebsite.com/"

View File

@ -1,6 +1,7 @@
---
layout: default
permalink: /
lang: "en"
---
{% include index.html lang="en" %}

View File

@ -1,6 +1,7 @@
---
layout: default
permalink: /it/
lang: it
---
{% include index.html lang="it" %}