|
2 | 2 | <footer class="bg-dark py-5 row d-print-none">
|
3 | 3 | <div class="container-fluid mx-sm-5">
|
4 | 4 | <div class="row">
|
5 |
| - <div class="col-6 col-sm-4 text-xs-center order-sm-2"> |
| 5 | + {{ template "footer-main-block" . }} |
| 6 | + <div class="col col-sm-2 text-xs-center order-1"> |
6 | 7 | {{ with $links }}
|
7 | 8 | {{ with index . "user"}}
|
8 | 9 | {{ template "footer-links-block" . }}
|
9 | 10 | {{ end }}
|
10 | 11 | {{ end }}
|
11 | 12 | </div>
|
12 |
| - <div class="col-6 col-sm-4 text-right text-xs-center order-sm-3"> |
| 13 | + <div class="col col-sm-2 text-right text-xs-center order-3"> |
13 | 14 | {{ with $links }}
|
14 | 15 | {{ with index . "developer"}}
|
15 | 16 | {{ template "footer-links-block" . }}
|
16 | 17 | {{ end }}
|
17 | 18 | {{ end }}
|
18 | 19 | </div>
|
19 |
| - <div class="col-12 col-sm-4 text-center py-2 order-sm-2"> |
20 |
| - {{ with .Site.Params.copyright }}<small class="text-white">© {{ 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 }} |
25 |
| - </div> |
26 | 20 | </div>
|
27 | 21 | </div>
|
28 | 22 | </footer>
|
29 | 23 | {{ define "footer-links-block" }}
|
30 |
| -<ul class="list-inline mb-0"> |
| 24 | +<ul class="list-inline mb-0 footer-icons"> |
31 | 25 | {{ range . }}
|
32 | 26 | <li class="list-inline-item mx-2 h3" data-toggle="tooltip" data-placement="top" title="{{ .name }}" aria-label="{{ .name }}">
|
33 | 27 | <a class="text-white" target="_blank" rel="noopener" href="{{ .url }}" aria-label="{{ .name }}">
|
|
37 | 31 | {{ end }}
|
38 | 32 | </ul>
|
39 | 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