forked from raviriley/agency-jekyll-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfooter.html
89 lines (89 loc) · 2.76 KB
/
footer.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<!-- Footer -->
<footer class="footer" id="footer" style="background-color: white">
<div class="container">
{% if site.locale and site.locale != "" and site.locale != nil %}
<div class="row align-items-center">
<div class="col-md-4">
<span class="copyright"
>Copyright © {{ site.title }} {{ 'now' | date: "%Y" }}</span
>
</div>
<!-- Social Media -->
<div class="col-md-4">
<ul class="list-inline social-buttons">
{% for link in site.data.sitetext[site.locale].footer.social %}
<li class="list-inline-item">
{% if link.url %}
<a href="{{ link.url }}">
{% if link.icon %}<i class="{{ link.icon }}"></i>{% endif %}
</a>
{% endif %}
</li>
{% endfor %}
</ul>
</div>
<!-- Legal -->
<div class="col-md-4">
<ul class="list-inline quicklinks">
<li class="list-inline-item">
{% if site.privacy and site.privacy != "" and site.privacy != nil %}
<a href="legal"
>{{ site.data.sitetext[site.locale].footer.legal | default:
"Privacy Policy" }}</a
>
{% endif %}
</li>
</ul>
</div>
</div>
{% else %}
<div class="row align-items-center">
<div class="col-md-4">
<span class="copyright"
>Copyright © {{ site.title }} {{ 'now' | date: "%Y" }}</span
>
</div>
<!-- Social Media -->
<div class="col-md-4">
<ul class="list-inline social-buttons">
{% for link in site.data.sitetext.footer.social %}
<li class="list-inline-item">
{% if link.url %}
<a href="{{ link.url }}">
{% if link.icon %}<i class="{{ link.icon }}"></i>{% endif %}
</a>
{% endif %}
</li>
{% endfor %}
</ul>
</div>
<!-- Legal -->
<div class="col-md-4">
<ul class="list-inline quicklinks">
<li class="list-inline-item">
<a href="legal"
>{{ site.data.sitetext.footer.legal | default: "Privacy Policy"
}}</a
>
</li>
</ul>
</div>
</div>
{% endif %}
</div>
</footer>
{% if page.layout == "page" %}
<script>
fixPageShort();
function fixPageShort() {
if (window.innerHeight > document.body.offsetHeight) {
document.getElementById("footer").style.position = "fixed";
document.getElementById("footer").style.bottom = 0;
document.getElementById("footer").style.right = 0;
document.getElementById("footer").style.left = 0;
document.getElementById("footer").style.width = "100%";
}
}
</script>
{% endif %}
<!-- End Footer -->