|
1 | 1 | {{ $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"> |
13 | 4 | <div class="row">
|
14 |
| - <div class="col-6 col-sm-2 text-xs-center order-sm-2"> |
| 5 | + {{ template "footer-main-block" . }} |
| 6 | + <div class="col col-sm-2 text-xs-center order-1"> |
15 | 7 | {{ with $links }}
|
16 | 8 | {{ with index . "user"}}
|
17 | 9 | {{ template "footer-links-block" . }}
|
18 | 10 | {{ end }}
|
19 | 11 | {{ end }}
|
20 | 12 | </div>
|
21 |
| - <div class="col-6 col-sm-2 text-right text-xs-center order-sm-3"> |
| 13 | + <div class="col col-sm-2 text-right text-xs-center order-3"> |
22 | 14 | {{ with $links }}
|
23 | 15 | {{ with index . "developer"}}
|
24 | 16 | {{ template "footer-links-block" . }}
|
25 | 17 | {{ end }}
|
26 | 18 | {{ end }}
|
27 | 19 | </div>
|
28 |
| - <div class="col-12 col-sm-8 text-center order-sm-2"> |
29 |
| - {{ with .Site.Params.copyright_k8s }}<small class="text-white">© {{ now.Year}} {{ T "main_documentation_license" | safeHTML }}</small>{{ end }} |
30 |
| - <br/> |
31 |
| - {{ with .Site.Params.copyright_linux }}<small class="text-white">Copyright © {{ 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 }} |
38 |
| - </div> |
39 | 20 | </div>
|
40 | 21 | </div>
|
41 | 22 | </footer>
|
42 | 23 | {{ define "footer-links-block" }}
|
43 |
| -<ul class="list-inline mb-0"> |
| 24 | +<ul class="list-inline mb-0 footer-icons"> |
44 | 25 | {{ range . }}
|
45 | 26 | <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 }}"> |
| 27 | + <a class="text-white" target="_blank" rel="noopener" href="{{ .url }}" aria-label="{{ .name }}"> |
47 | 28 | <i class="{{ .icon }}"></i>
|
48 | 29 | </a>
|
49 | 30 | </li>
|
50 | 31 | {{ end }}
|
51 | 32 | </ul>
|
52 | 33 | {{ end }}
|
| 34 | +{{ define "footer-main-block" }} |
| 35 | + <div class="col-5 col-sm-7 text-center order-2 footer-main"> |
| 36 | + <p><span class="copyright-notice">© {{ now.Year}} {{ T "main_documentation_license" | safeHTML }}</span></p> |
| 37 | + <p><span class="copyright-notice">© {{ now.Year }} {{ T "main_copyright_notice" | safeHTML }}</span></p> |
| 38 | + <p><span class="certification-notice">{{ T "china_icp_license" }} 京ICP备17074266号-3</span></p> |
| 39 | + {{ with .Site.Params.privacy_policy }}<p><span class="ml-1 privacy-policy"><a href="{{ . }}" target="_blank">{{ T "footer_privacy_policy" }}</a></span></p>{{ end }} |
| 40 | + {{ if not .Site.Params.ui.footer_about_disable }} |
| 41 | + {{ with .Site.GetPage "about" }}<p class="mt-2"><a href="{{ .RelPermalink }}">{{ .Title }}</a></p>{{ end }} |
| 42 | + {{ end }} |
| 43 | + </div> |
| 44 | +{{ end }} |
0 commit comments