File tree 4 files changed +16
-5
lines changed
4 files changed +16
-5
lines changed Original file line number Diff line number Diff line change @@ -3,3 +3,4 @@ sourcecode:
3
3
root : " https://github.com/CoderDojoPotsdam/intro/blob/master/"
4
4
keep_files :
5
5
- offline
6
+ local_server : " http://localhost:25444"
Original file line number Diff line number Diff line change 11
11
{%- for link in tutorial.links -%}
12
12
{%- if link.offline -%}
13
13
< span class ="offline ">
14
- {%- endif -%}
15
- {%- include lang-link.html text=link.name href=link.url -%}
16
- {%- if forloop.last -%}{%- else %} | {% endif -%}
17
- {%- if link.offline -%}
14
+ {% include lang-link.html text=link.name href=link.url -%} |
18
15
</ span >
16
+ < span class ="local ">
17
+ {%- assign local_link = site.local_server | append: "/" | append: link.url -%}
18
+ {%- include lang-link.html text=link.name href=local_link -%}
19
+ {%- else -%}
20
+ < span class ="online ">
21
+ {% include lang-link.html text=link.name href=link.url -%}
19
22
{%- endif -%}
23
+ {%- if forloop.last -%}{%- else %} | {% endif %}
24
+ </ span >
20
25
{% endfor -%}
21
26
{%- endif -%}
22
27
</ div >
Original file line number Diff line number Diff line change 9
9
< link href ="css/fonts.css " rel ="stylesheet "/>
10
10
< link href ="css/grid.css " rel ="stylesheet "/>
11
11
< link href ="css/deactivate-offline.css " rel ="stylesheet "/>
12
+ < link href ="{{ site.local_server }}/offline/activate_localhost.css " rel ="stylesheet "/>
12
13
< link href ="offline/activate.css " rel ="stylesheet "/>
13
14
</ head >
14
15
< body >
Original file line number Diff line number Diff line change 1
1
/*
2
2
* This css file deactivates all the offline supported links.
3
- *
3
+ * And the local links.
4
4
*/
5
5
6
6
.offline {
7
7
display : none;
8
8
}
9
9
10
+ .local {
11
+ display : none;
12
+ }
13
+
10
14
@import url ("../offline/activate.css" );
You can’t perform that action at this time.
0 commit comments