Skip to content

Commit 347744e

Browse files
committed
add footer menu
1 parent 87988b5 commit 347744e

File tree

3 files changed

+52
-0
lines changed

3 files changed

+52
-0
lines changed

_data/secondary-menu.yml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
- title: "About"
2+
slug: "about"
3+
4+
- title: "Work Packages"
5+
slug: "about/work-packages"
6+
7+
- title: "Deliverables"
8+
slug: "about/deliverables"
9+
10+
- title: "Partners"
11+
slug: "about/partners"
12+
13+
- title: "Press"
14+
slug: "press"

_includes/footer.html

+10
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
<nav class="footer-nav">
2+
<ul>
3+
{% for item in site.data.secondary-menu %}
4+
<li{% if current_page.last == item.slug %} class='active'{% endif %}>
5+
<a href="{{ site.baseurl }}/{{ item.slug }}">{{ item.title }}</a>
6+
</li>
7+
{% endfor %}
8+
</ul>
9+
</nav>
10+
111
<footer class="site-footer">
212
<div class="wrapper">
313
<a class="footer-logo" href="http://openbudgets.eu/">

_sass/_footer.scss

+28
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,34 @@ $footer-color: white;
33
$footer-link-color: transparentize($footer-color, .4);
44
$footer-disclaimer-color: transparentize($footer-color, .6);
55

6+
.footer-nav {
7+
background-color: $medium-gray;
8+
9+
& > ul {
10+
@include outer-container;
11+
padding-top: $small-spacing;
12+
padding-bottom: $small-spacing;
13+
14+
& > li {
15+
16+
@include media($medium-screen) {
17+
display: inline-block;
18+
}
19+
20+
a {
21+
display: inline-block;
22+
padding: $small-spacing $base-spacing;
23+
color: rgba(#fff, 0.7);
24+
font-size: .9em;
25+
26+
&:hover {
27+
color: #fff;
28+
}
29+
}
30+
}
31+
}
32+
}
33+
634
html {
735
background: $footer-background;
836
}

0 commit comments

Comments
 (0)