18
18
< link type ="text/css " rel ="stylesheet " href ="../css/Ubuntu.css " media ="screen "/>
19
19
< link rel ="shortcut icon " href ="../favicon.ico?v=2 " type ="image/x-icon ">
20
20
< meta charset ="utf-8 ">
21
- < title > {{- page.title | escape - }} - {{- site.data.localization.title[page.lang] - }}</ title >
21
+ < title > {{ page.title | escape }} - {{ site.data.localization.title[page.lang] }}</ title >
22
22
< script type ="text/javascript ">
23
- var current_page_id = "page-" + { { - page . path | jsonify - } } ;
23
+ var current_page_id = "page-" + { { page . path | jsonify } } ;
24
24
</ script >
25
25
< style >
26
26
.clicked .toggle-hint : before {
27
- content : "{{- site.data.localization.hint.shown[page.lang] - }}" ;
27
+ content : "{{ site.data.localization.hint.shown[page.lang] }}" ;
28
28
}
29
29
30
30
.secret .toggle-hint : before {
31
- content : "{{- site.data.localization.hint.hidden[page.lang] - }}" ;
31
+ content : "{{ site.data.localization.hint.hidden[page.lang] }}" ;
32
32
}
33
33
34
34
.playfield .verbose .match .ok : after {
35
- content : "{{- site.data.localization.match.matched[page.lang] - }}" ;
35
+ content : "{{ site.data.localization.match.matched[page.lang] }}" ;
36
36
}
37
37
38
38
.playfield .verbose .match .fail : after {
39
- content : "{{- site.data.localization.match.shouldNotMatch[page.lang] - }}" ;
39
+ content : "{{ site.data.localization.match.shouldNotMatch[page.lang] }}" ;
40
40
}
41
41
42
42
.playfield .verbose .nomatch .ok : after {
43
- content : "{{- site.data.localization.match.shouldMatch[page.lang] - }}" ;
43
+ content : "{{ site.data.localization.match.shouldMatch[page.lang] }}" ;
44
44
}
45
45
46
46
.playfield .verbose .nomatch .fail : after {
47
- content : "{{- site.data.localization.match.noMatch[page.lang] - }}" ;
47
+ content : "{{ site.data.localization.match.noMatch[page.lang] }}" ;
48
48
}
49
49
50
50
.quiz .expression : before {
51
- content : "{{- site.data.localization.quiz.before[page.lang] - }}" ;
51
+ content : "{{ site.data.localization.quiz.before[page.lang] }}" ;
52
52
}
53
53
54
54
.quiz .expression : after {
55
- content : "{{- site.data.localization.quiz.after[page.lang] - }}" ;
55
+ content : "{{ site.data.localization.quiz.after[page.lang] }}" ;
56
56
}
57
57
58
58
.quiz .button-ok : before {
59
- content : "{{- site.data.localization.quiz.yes[page.lang] - }}" ;
59
+ content : "{{ site.data.localization.quiz.yes[page.lang] }}" ;
60
60
}
61
61
62
62
.quiz .button-fail : before {
63
- content : "{{- site.data.localization.quiz.no[page.lang] - }}" ;
63
+ content : "{{ site.data.localization.quiz.no[page.lang] }}" ;
64
64
}
65
65
</ style >
66
66
</ head >
67
67
< body >
68
68
< header >
69
69
< div class ="progress ">
70
- {% comment %}{% endcomment %}
71
- {%- assign same_topic_started = false -%}
72
- {%- assign should_assign_next = false -%}
73
- {%- assign has_next_page = false -%}
74
- {%- assign step_index = 0 -%}
75
- {%- assign next_page = nil -%}
76
- {%- for p in site.pages -%}
77
- {%- assign file_name = page.path | split: "/" -%}
78
- {%- assign file_name = file_name[1] -%}
79
-
80
- {%- assign p_file_name = p.path | split: "/" -%}
81
- {%- assign p_file_name = p_file_name[1] -%}
82
-
83
- {%- assign topic = file_name | split: "-" | first -%}
84
- {%- assign p_topic = p_file_name | split: "-" | first -%}
85
-
86
- {%- if p.lang == page.lang -%}
87
- {%- assign step_index = step_index | plus: 1 -%}
88
- {%- if p_topic == topic and same_topic_started == false -%}
70
+ {% assign same_topic_started = false %}
71
+ {% assign should_assign_next = false %}
72
+ {% assign has_next_page = false %}
73
+ {% assign step_index = 0 %}
74
+ {% assign next_page = nil %}
75
+ {% for p in site.pages %}
76
+ {% assign file_name = page.path | split: "/" %}
77
+ {% assign file_name = file_name[1] %}
78
+
79
+ {% assign p_file_name = p.path | split: "/" %}
80
+ {% assign p_file_name = p_file_name[1] %}
81
+
82
+ {% assign topic = file_name | split: "-" | first %}
83
+ {% assign p_topic = p_file_name | split: "-" | first %}
84
+
85
+ {% if p.lang == page.lang %}
86
+ {% assign step_index = step_index | plus: 1 %}
87
+ {% if p_topic == topic and same_topic_started == false %}
89
88
< div class ="same-topic ">
90
- {% comment %}{% endcomment %}
91
- {%- assign same_topic_started = true -%}
92
- {%- endif -%}
93
- {%- if p_topic != topic and same_topic_started == true -%}
89
+ {% assign same_topic_started = true %}
90
+ {% endif %}
91
+ {% if p_topic != topic and same_topic_started == true %}
94
92
</ div >
95
- {% comment %}{% endcomment %}
96
- {%- assign same_topic_started = false -%}
97
- {%- endif -%}
98
- < a id ="page-{{- p.path -}} " class ="step {%- if page == p -%}current{%- endif -%} " href ="..{{- p.url -}} "> {%- if page == p -%}{{- step_index -}}{%- endif -%}</ a >
99
- {% comment %}{% endcomment %}
100
- {%- if should_assign_next -%}
101
- {%- assign should_assign_next = false -%}
102
- {%- assign has_next_page = true -%}
103
- {%- assign next_page = p -%}
104
- {%- endif -%}
105
- {%- if page == p -%}
106
- {%- assign should_assign_next = true -%}
107
- {%- endif -%}
108
- {%- endif -%}
109
- {%- endfor -%}
110
- {%- if same_topic_started -%}
93
+ {% assign same_topic_started = false %}
94
+ {% endif %}
95
+ < a id ="page-{{ p.path }} " class ="step {% if page == p %}current{% endif %} " href ="..{{ p.url }} "> {% if page == p %}{{ step_index }}{% endif %}</ a >
96
+ {% if should_assign_next %}
97
+ {% assign should_assign_next = false %}
98
+ {% assign has_next_page = true %}
99
+ {% assign next_page = p %}
100
+ {% endif %}
101
+ {% if page == p %}
102
+ {% assign should_assign_next = true %}
103
+ {% endif %}
104
+ {% endif %}
105
+ {% endfor %}
106
+ {% if same_topic_started %}
111
107
</ div >
112
- {% comment %}{% endcomment %}
113
- {%- endif -%}
108
+ {% endif %}
114
109
</ div >
115
- {% comment %}{% endcomment %}
116
- < h2 > {{- page.title | escape -}}</ h2 >
110
+ < h2 > {{ page.title | escape }}</ h2 >
117
111
</ header >
118
112
< div class ="main ">
119
- {{- content - }}
120
- {%- if has_next_page - %}
121
- < a href ="..{{- next_page.url - }} " class ="next-page "> {{- site.data.localization.footer.nextStep[page.lang] - }}</ a >
122
- {%- endif - %}
113
+ {{ content }}
114
+ {% if has_next_page %}
115
+ < a href ="..{{ next_page.url }} " class ="next-page "> {{ site.data.localization.footer.nextStep[page.lang] }}</ a >
116
+ {% endif %}
123
117
</ div >
124
118
< footer >
125
119
< div class = "languageFooterMenu " >
126
120
< select id ="languageMenu " onchange ="changeLanguage() ">
127
121
128
- {%- assign languagesArray = 'English,Deutsch,Svenska' | split: ',' - %}
129
-
130
- {%- for language in languagesArray - %}
131
- {%- assign lang = language | slice: 0, 2 | downcase - %}
132
- {{- lang - }}
133
- {{- page.lang - }}
134
- {%- if lang == page.lang - %}
135
- < option id = page.lang selected href ="..{{page.url}} " value ="{{- page.url | remove: ".html "}}"> {{language}}</ option >
136
- {%- endif - %}
137
- {%- if lang != page.lang - %}
138
- < option id = "{{lang}} " href ="..{{page.url | replace: page.lang, lang}} " value ="{{- page.url | remove: ".html " | replace: page.lang, lang}}" > {{language}}</ option >
139
- {%- endif - %}
140
- {%- endfor - %}
122
+ {% assign languagesArray = 'English,Deutsch,Svenska' | split: ',' %}
123
+
124
+ {% for language in languagesArray %}
125
+ {% assign lang = language | slice: 0, 2 | downcase %}
126
+ {{ lang }}
127
+ {{ page.lang }}
128
+ {% if lang == page.lang %}
129
+ < option id = page.lang selected href ="..{{page.url}} " value ="{{ page.url | remove: ".html "}}"> {{language}}</ option >
130
+ {% endif %}
131
+ {% if lang != page.lang %}
132
+ < option id = "{{lang}} " href ="..{{page.url | replace: page.lang, lang}} " value ="{{ page.url | remove: ".html " | replace: page.lang, lang}}" > {{language}}</ option >
133
+ {% endif %}
134
+ {% endfor %}
141
135
</ select >
142
136
143
137
< script >
@@ -158,20 +152,20 @@ <h2>{{- page.title | escape -}}</h2>
158
152
</ script >
159
153
</ div >
160
154
< div class ="links ">
161
- < a href ="{{- site.data.localization.github.edit - }}/{{- page.path - }} "> {{- site.data.localization.footer.edit[page.lang] - }}</ a >
162
- < a href ="{{- site.data.localization.github.newIssue - }} "> {{- site.data.localization.footer.newIssue[page.lang] - }}</ a >
163
- < a href ="javascript:deleteCookies() "> {{- site.data.localization.footer.deleteCookies[page.lang] - }}</ a >
164
- < a href ="{{- site.data.localization.github.view - }}/{{- page.path - }} "> {{- site.data.localization.footer.view[page.lang] - }}</ a >
155
+ < a href ="{{ site.data.localization.github.edit }}/{{ page.path }} "> {{ site.data.localization.footer.edit[page.lang] }}</ a >
156
+ < a href ="{{ site.data.localization.github.newIssue }} "> {{ site.data.localization.footer.newIssue[page.lang] }}</ a >
157
+ < a href ="javascript:deleteCookies() "> {{ site.data.localization.footer.deleteCookies[page.lang] }}</ a >
158
+ < a href ="{{ site.data.localization.github.view }}/{{ page.path }} "> {{ site.data.localization.footer.view[page.lang] }}</ a >
165
159
</ div >
166
160
< div class ="license ">
167
161
< a rel ="license " href ="http://creativecommons.org/licenses/by-sa/4.0/ ">
168
162
< img alt ="Creative Commons Lizenzvertrag " style ="border-width:0 " src ="../img/cc-by-sa.png " />
169
163
</ a >
170
- {{- site.data.localization.license[page.lang] - }}
171
- {%- assign lowercase_content = content | downcase - %}
172
- {%- if lowercase_content contains "< img " - %}
173
- {{- site.data.localization.licenseImage[page.lang] - }}
174
- {%- endif - %}
164
+ {{ site.data.localization.license[page.lang] }}
165
+ {% assign lowercase_content = content | downcase %}
166
+ {% if lowercase_content contains "< img " %}
167
+ {{ site.data.localization.licenseImage[page.lang] }}
168
+ {% endif %}
175
169
</ div >
176
170
</ footer >
177
171
</ body >
0 commit comments