Init Commit
This commit is contained in:
@@ -0,0 +1,56 @@
|
||||
<footer class="footer w-100 d-print-none">
|
||||
|
||||
|
||||
{{ $footer := where (where .Site.Pages "Type" "footer") "Lang" .Lang }}
|
||||
|
||||
{{ range (sort $footer "Date" "desc") }}
|
||||
{{ if .File }}
|
||||
{{ warnf "[FOOTER] Path: %s | Lang: %s | IsDraft: %t | Type: %s | Section: %s | Kind: %s" .File.Path .Lang .Draft .Type .Section .Kind }}
|
||||
{{ end }}
|
||||
{{ .Content | safeHTML }}
|
||||
{{ end }}
|
||||
|
||||
<div class="container items">
|
||||
<div class="container">
|
||||
<div class="row w-100 align-items-center">
|
||||
<div class="footer_left col-12 col-lg-4 mb-3 mb-lg-0 text-center text-lg-start">
|
||||
<div class="footer__copy">
|
||||
<span>{{ i18n "footer_notice" | safeHTML }}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="footer_links col-12 col-lg-6 mb-3 mb-lg-0 text-center text-lg-start">
|
||||
<ul class="navbar-nav w-100 align-items-center justify-content-center justify-content-lg-start d-flex flex-wrap gap-2">
|
||||
{{ range .Site.Menus.footer }}
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="{{ .URL | relURL }}"
|
||||
>{{ if .Pre }}
|
||||
<i class="icon-{{ .Pre }}" aria-label="{{ or .Name .Pre }}"></i>
|
||||
{{ else }}
|
||||
{{ .Name | upper }}
|
||||
{{ end }}</a
|
||||
>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
<div class="footer_right col-12 col-lg-2 mb-3 mb-lg-0 text-center text-lg-end">
|
||||
<div class="d-flex flex-column flex-lg-row justify-content-center align-items-center gap-2 d-grid col-12 ">
|
||||
{{- if hugo.IsMultilingual }}
|
||||
{{- if not .Site.Params.languages.selector.disable.footer }}
|
||||
{{ .Scratch.Set "selectorPlacement" "footer" }}
|
||||
{{ .Scratch.Set "dropdownDirection" "up" }}
|
||||
{{ partial "selector-language.html" . }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
{{- if not .Site.Params.colorTheme.selector.disable.footer }}
|
||||
{{ .Scratch.Set "selectorPlacement" "footer" }}
|
||||
{{ .Scratch.Set "dropdownDirection" "up" }}
|
||||
{{ partial "selector-theme.html" . }}
|
||||
{{- end }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
Reference in New Issue
Block a user