Upgrade docsy to 0.11.0 and hugo to 0.139.0 (#1996)
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
This commit is contained in:
parent
c5d7eb7a2d
commit
d5c56a4f17
12 changed files with 83 additions and 72 deletions
30
layouts/partials/footer/center.html
Normal file
30
layouts/partials/footer/center.html
Normal file
|
@ -0,0 +1,30 @@
|
|||
{{- /*
|
||||
|
||||
Modified version of the footer/center.html partial of Docsy, adding "bottom"
|
||||
links on top of the copyright.
|
||||
|
||||
*/ -}}
|
||||
|
||||
{{ with .Site.Params.links -}}
|
||||
{{ with index . "bottom" -}}
|
||||
{{- partial "footer/links.html" . -}}
|
||||
{{ end -}}
|
||||
{{ end -}}
|
||||
|
||||
<div class="mt-2 mb-3">
|
||||
{{ partial "footer/copyright.html" . -}}
|
||||
</div>
|
||||
|
||||
{{ with .Site.Params.privacy_policy -}}
|
||||
<span class="ms-2"><a href="{{ . }}" target="_blank" rel="noopener">{{ T "footer_privacy_policy" }}</a></span>
|
||||
{{- end -}}
|
||||
|
||||
{{ if ne .Site.Params.ui.footer_about_disable nil -}}
|
||||
{{ warnf "Config parameter '.params.ui.footer_about_disable' is DEPRECATED, use '.params.ui.footer_about_enable' instead." -}}
|
||||
{{ end -}}
|
||||
|
||||
{{ if or .Site.Params.ui.footer_about_enable (eq .Site.Params.ui.footer_about_disable false) -}}
|
||||
{{ with .Site.GetPage "about" -}}
|
||||
<p class="td-footer__about mt-2"><a href="{{ .RelPermalink }}">{{ .Title }}</a></p>
|
||||
{{- end -}}
|
||||
{{ end -}}
|
Loading…
Add table
Add a link
Reference in a new issue