Skip to content

Commit db575f4

Browse files
committed
add links for tutorial
1 parent ddc7c65 commit db575f4

File tree

8 files changed

+152
-5
lines changed

8 files changed

+152
-5
lines changed

LICENSE renamed to LICENSE.txt

File renamed without changes.

_config.yml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
sourcecode:
2+
repository: "https://github.com/CoderDojoPotsdam/CoderDojoPotsdam.github.io/intro"
3+
root: "https://github.com/CoderDojoPotsdam/intro/blob/master/"

_includes/footer.html

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<footer>
2+
<div class="left">
3+
<div class="space"></div>
4+
</div>
5+
<div class="middle">
6+
<a href="{{ site.sourcecode.root }}/{{ page.path }}"><img src="img/footer/GitHub.svg" /></a>
7+
</div>
8+
<div class="right">
9+
<a href="LICENSE.txt">license</a>
10+
<div class="space"></div>
11+
</div>
12+
</footer>

_includes/lang-link.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@
1313
{%- endfor -%}
1414
{%- if translated == false -%}
1515
<a class="translation" href="{{ include.href }}">
16-
{%- include lang.html text=include.text %}
16+
{%- include lang.html text=include.text -%}
1717
</a>
1818
{%- endif -%}

_includes/tutorial.html

+6-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@
77
<div class="description">
88
{%- include lang.html text=tutorial.description %}
99
</div>
10-
{%- if structure.structure %}
11-
{% include structure.html structure=structure.structure %}
12-
{%- endif %}
10+
{%- if tutorial.links -%}
11+
{%- for link in tutorial.links -%}
12+
{%- include lang-link.html text=link.name href=link.url -%}
13+
{%- if forloop.last -%}{%- else %} | {% endif -%}
14+
{% endfor -%}
15+
{%- endif -%}
1316
</div>

_layouts/overview.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
<div class="show-language-heading">{{ language.name | escape }}</div>
2424
{% include structure.html structure=page.structure %}
2525
</div>
26-
{%- endfor -%}
26+
{%- endfor %}
27+
{% include footer.html %}
2728
</body>
2829
</html>

css/overview.css

+47
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
/*******************************************************
1717
* header
1818
*/
19+
1920
.header {
2021
right: 0px;
2122
left: 0px;
@@ -92,3 +93,49 @@ body {
9293
.category > .description {
9394

9495
}
96+
97+
/*******************************************************
98+
* tutorial
99+
*/
100+
101+
.footer {
102+
text-align: center;
103+
right: 0px;
104+
left: 0px;
105+
border: 0px;
106+
box-shadow: 0px 1px 5px #989898;
107+
overflow: hidden;
108+
padding-top: 1em;
109+
margin-top: 1em;
110+
padding-bottom: 1em;
111+
}
112+
113+
footer img {
114+
height: 2em;
115+
vertical-align: middle;
116+
}
117+
118+
footer .right {
119+
text-align: right;
120+
margin-top: 0.5em;
121+
width: 32%;
122+
display: inline-block;
123+
}
124+
125+
footer .middle {
126+
text-align: center;
127+
width: 33%;
128+
display: inline-block;
129+
}
130+
131+
footer .left {
132+
text-align: left;
133+
width: 32%;
134+
display: inline-block;
135+
}
136+
137+
footer .space {
138+
width: 1em;
139+
height: 1em;
140+
display: inline-block;
141+
}

img/footer/GitHub.svg

+81
Loading

0 commit comments

Comments
 (0)