Remove _includes/langs, use anchors in YAML instead

This commit is contained in:
Samuel Shifterovich
2018-12-24 11:53:14 +01:00
parent 9663a69c67
commit fb69c5ae2a
23 changed files with 97 additions and 106 deletions

View File

@ -1,13 +1,13 @@
{% include section_config section=include.section lang=include.lang %}
<h1 id="ukusa" class="anchor"><a href="#ukusa"><i class="fas fa-link anchor-icon"></i></a> {{ title }} </h1>
<h1 id="ukusa" class="anchor"><a href="#ukusa"><i class="fas fa-link anchor-icon"></i></a> {{ lang.title }} </h1>
<img src="/assets/img/layout/UKUSA.png" class="img-fluid float-right" alt="UKUSA Agreement" style="margin-left:10px;">
{{ description }}
{{ lang.description }}
<!-- chart -->
<div class="row mb-3">
{% include components/panel.html color="danger"
title=five_eyes
title=lang.five_eyes
list='
- Australia <div class="float-right"><span class="flag-icon flag-icon-au"></span></div>
- Canada <div class="float-right"><span class="flag-icon flag-icon-ca"></span></div>
@ -18,7 +18,7 @@
%}
{% include components/panel.html color="warning"
title=nine_eyes
title=lang.nine_eyes
list='
- Denmark <div class="float-right"><span class="flag-icon flag-icon-dk"></span></div>
- France <div class="float-right"><span class="flag-icon flag-icon-fr"></span></div>
@ -28,7 +28,7 @@
%}
{% include components/panel.html color="secondary"
title=fourteen_eyes
title=lang.fourteen_eyes
list='
- Belgium <div class="float-right"><span class="flag-icon flag-icon-be"></span></div>
- Germany <div class="float-right"><span class="flag-icon flag-icon-de"></span></div>

View File

@ -1,15 +1,15 @@
{% include section_config section=include.section lang=include.lang %}
<h1 id="kdl" class="anchor"><a href="#kdl"><i class="fas fa-link anchor-icon"></i></a> {{ title }}</h1>
### {{ subheading }}
<h1 id="kdl" class="anchor"><a href="#kdl"><i class="fas fa-link anchor-icon"></i></a> {{ lang.title }}</h1>
### {{ lang.subheading }}
{{ description }}
{{ lang.description }}
<!-- Chart of key disclosure law in some countries -->
<div class="row mb-2">
{% include components/panel.html color="danger"
title=apply
title=lang.apply
list='
- [Antigua and Barbuda](https://en.wikipedia.org/wiki/Key_disclosure_law#Antigua_and_Barbuda) <div class="float-right"><span class="flag-icon flag-icon-ag"></span></div>
- [Australia](https://en.wikipedia.org/wiki/Key_disclosure_law#Australia) <div class="float-right"><span class="flag-icon flag-icon-au"></span></div>
@ -25,7 +25,7 @@
%}
{% include components/panel.html color="warning"
title=may_apply
title=lang.may_apply
list='
- [Belgium *](https://en.wikipedia.org/wiki/Key_disclosure_law#Belgium) <div class="float-right"><span class="flag-icon flag-icon-be"></span></div>
- [Finland *](https://en.wikipedia.org/wiki/Key_disclosure_law#Finland) <div class="float-right"><span class="flag-icon flag-icon-fi"></span></div>
@ -36,7 +36,7 @@
%}
{% include components/panel.html color="success"
title=dont_apply
title=lang.dont_apply
list='
- [Czech Republic](https://en.wikipedia.org/wiki/Key_disclosure_law#Czech_Republic) <div class="float-right"><span class="flag-icon flag-icon-cz"></span></div>
- [Germany](https://en.wikipedia.org/wiki/Key_disclosure_law#Germany) <div class="float-right"><span class="flag-icon flag-icon-de"></span></div>
@ -47,9 +47,9 @@
</div>
\* ({{ footnote }})
\* ({{ lang.footnote }})
### {{ related_information }}
### {{ general.related_information }}
- <a href="https://en.wikipedia.org/wiki/Key_disclosure_law">Wikipedia page on key disclosure law</a>
- <a href="https://law.stackexchange.com/questions/1523/can-a-us-citizen-be-required-to-provide-the-authentication-key-for-encrypted-dat">law.stackexchange.com question about key disclosure law in US</a>
- <a href="https://www.youtube.com/watch?v=Jt7D4AIfqlQ">DEFCON 20: Crypto and the Cops: the Law of Key Disclosure and Forced Decryption</a>

View File

@ -1,17 +1,17 @@
{% include section_config section=include.section lang=include.lang %}
<div class="page-header">
<h1>{{ title }}</h1>
<h1>{{ lang.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 }}
<a href="https://www.ted.com/talks/glenn_greenwald_why_privacy_matters" title="Glenn Greenwald - {{ lang.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: {{ lang.talk_name }}"></a>
{{ lang.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>
<footer class="blockquote-footer">Glenn Greenwald in <cite title="{{ lang.talk_name }} - TED Talk"><a href="https://www.ted.com/talks/glenn_greenwald_why_privacy_matters">{{ lang.talk_name }} - TED Talk</a></cite></footer>
</blockquote>
#### {{ read_also }}:
#### {{ general.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/)

View File

@ -1,12 +1,12 @@
{% include section_config section=include.section lang=include.lang %}
<h3 id="usa" class="anchor">{{ title }}</h3>
<h3 id="usa" class="anchor">{{ lang.title }}</h3>
<img src="/assets/img/layout/USA.png" class="img-fluid float-right" alt="USA" style="margin-left:10px;">
{{ description }}
{{ lang.description }}
### {{ related_information }}
### {{ general.related_information }}
- [Avoid all US and UK based services](https://www.bestvpn.com/the-ultimate-privacy-guide/#avoidus)
- [Proof that warrant canaries work based on the surespot example.](https://en.wikipedia.org/wiki/Surespot#History)