Do all the | default in the language files and access lang strings in index using simple variables
This commit is contained in:
@ -33,17 +33,17 @@
|
||||
|
||||
{% include lang for="nothing_to_hide" lang=selected %}
|
||||
<div class="page-header">
|
||||
<h1>{{ lang.title | default: en.title }}</h1>
|
||||
<h1>{{ 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
|
||||
<a href="http://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: Why privacy matters"></a>
|
||||
{{ lang.quote | default: en.quote }}
|
||||
{{ quote }}
|
||||
</p>
|
||||
<footer class="blockquote-footer">Glenn Greenwald in <cite title="{{ lang.talk_name | default: en.talk_name }} - TED Talk"><a
|
||||
<footer class="blockquote-footer">Glenn Greenwald in <cite title="{{ 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>
|
||||
{{ talk_name }} - TED Talk</a></cite></footer>
|
||||
</blockquote>
|
||||
|
||||
<h4>{{ language['Read also'] | default: english['Read also'] }}</h4>
|
||||
|
Reference in New Issue
Block a user