Skip to content

Commit e1e2c16

Browse files
author
Tim Bannister
committed
Use footer from Docsy theme
1 parent 513d4df commit e1e2c16

File tree

2 files changed

+27
-25
lines changed

2 files changed

+27
-25
lines changed

assets/scss/_custom.scss

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,16 +266,26 @@ body.td-404 main .error-details {
266266

267267
/* FOOTER */
268268
footer {
269-
background-color: #303030;
269+
background-color: #202020;
270+
/* darkened later in this file */
270271
background-image: url("/images/texture.png");
271272
padding: 1rem !important;
272273
min-height: initial !important;
274+
justify-content: center;
273275

274276
> div, > p {
275277
max-width: 95%;
276278
@media only screen and (min-width: 768px) {
277279
max-width: calc(min(80rem,90vw)); // avoid spreading too wide
278280
}
281+
color: inherit;
282+
background: transparent;
283+
284+
a:hover {
285+
color: inherit;
286+
background: transparent;
287+
text-decoration: underline;
288+
}
279289
}
280290

281291
> .footer__links {
@@ -313,6 +323,11 @@ footer {
313323
}
314324
}
315325

326+
footer {
327+
background-image: linear-gradient(rgba(0, 0, 0, 0.527),rgba(0, 0, 0, 0.5)) , url("/images/texture.png");
328+
color: #e9e9e9;
329+
}
330+
316331
/* SIDE-DRAWER MENU */
317332

318333
.pi-pushmenu .sled {

layouts/partials/footer.html

Lines changed: 11 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,27 @@
11
{{ $links := .Site.Params.links }}
2-
<footer class="d-print-none">
3-
<div class="footer__links">
4-
<nav>
5-
{{ with site.GetPage "page" "docs/tutorials/stateless-application/hello-minikube" }}<a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>{{ end }}
6-
{{ $sections := slice "docs/home" "blog" "training" "partners" "community" "case-studies" }}
7-
{{ range $sections }}
8-
{{ with site.GetPage "section" . }}<a class="text-white" href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>{{ end }}
9-
{{ end }}
10-
</nav>
11-
</div>
12-
<div class="container-fluid">
2+
<footer class="bg-dark py-5 row d-print-none">
3+
<div class="container-fluid mx-sm-5">
134
<div class="row">
14-
<div class="col-6 col-sm-2 text-xs-center order-sm-2">
5+
<div class="col-6 col-sm-4 text-xs-center order-sm-2">
156
{{ with $links }}
167
{{ with index . "user"}}
178
{{ template "footer-links-block" . }}
189
{{ end }}
1910
{{ end }}
2011
</div>
21-
<div class="col-6 col-sm-2 text-right text-xs-center order-sm-3">
12+
<div class="col-6 col-sm-4 text-right text-xs-center order-sm-3">
2213
{{ with $links }}
2314
{{ with index . "developer"}}
2415
{{ template "footer-links-block" . }}
2516
{{ end }}
2617
{{ end }}
2718
</div>
28-
<div class="col-12 col-sm-8 text-center order-sm-2">
29-
{{ with .Site.Params.copyright_k8s }}<small class="text-white">&copy; {{ now.Year}} {{ T "main_documentation_license" | safeHTML }}</small>{{ end }}
30-
<br/>
31-
{{ with .Site.Params.copyright_linux }}<small class="text-white">Copyright &copy; {{ now.Year }} {{ T "main_copyright_notice" | safeHTML }}</small>{{ end }}
32-
<br/>
33-
<small class="text-white">{{ T "china_icp_license" }} 京ICP备17074266号-3</small>
34-
{{ with .Site.Params.privacy_policy }}<small class="ml-1"><a href="{{ . }}" target="_blank">{{ T "footer_privacy_policy" }}</a></small>{{ end }}
35-
{{ if not .Site.Params.ui.footer_about_disable }}
36-
{{ with .Site.GetPage "about" }}<p class="mt-2"><a href="{{ .RelPermalink }}">{{ .Title }}</a></p>{{ end }}
37-
{{ end }}
19+
<div class="col-12 col-sm-4 text-center py-2 order-sm-2">
20+
{{ with .Site.Params.copyright }}<small class="text-white">&copy; {{ now.Year}} {{ .}} {{ T "footer_all_rights_reserved" }}</small>{{ end }}
21+
{{ with .Site.Params.privacy_policy }}<small class="ml-1"><a href="{{ . }}" target="_blank" rel="noopener">{{ T "footer_privacy_policy" }}</a></small>{{ end }}
22+
{{ if not .Site.Params.ui.footer_about_disable }}
23+
{{ with .Site.GetPage "about" }}<p class="mt-2"><a href="{{ .RelPermalink }}">{{ .Title }}</a></p>{{ end }}
24+
{{ end }}
3825
</div>
3926
</div>
4027
</div>
@@ -43,7 +30,7 @@
4330
<ul class="list-inline mb-0">
4431
{{ range . }}
4532
<li class="list-inline-item mx-2 h3" data-toggle="tooltip" data-placement="top" title="{{ .name }}" aria-label="{{ .name }}">
46-
<a class="text-white" target="_blank" href="{{ .url }}">
33+
<a class="text-white" target="_blank" rel="noopener" href="{{ .url }}" aria-label="{{ .name }}">
4734
<i class="{{ .icon }}"></i>
4835
</a>
4936
</li>

0 commit comments

Comments
 (0)