Upgrade docsy to 0.11.0 and hugo to 0.139.0 (#1996)
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>pull/1915/merge
parent
c5d7eb7a2d
commit
d5c56a4f17
@ -0,0 +1 @@
|
||||
Upgrade docsy to 0.11.0 and hugo to 0.138.0.
|
@ -1,4 +1,4 @@
|
||||
github.com/FortAwesome/Font-Awesome v0.0.0-20230327165841-0698449d50f2/go.mod h1:IUgezN/MFpCDIlFezw3L8j83oeiIuYoj28Miwr/KUYo=
|
||||
github.com/matrix-org/docsy v0.0.0-20241030165433-a14705b7e3ca h1:WqKYQIF3JdWxY6b+OZQbdCjczOmELuUxpXhXSXJ/F58=
|
||||
github.com/matrix-org/docsy v0.0.0-20241030165433-a14705b7e3ca/go.mod h1:TAN2cSMJzy0hnx9OYDbBYluS8raV61UHxT/tfjaLt3g=
|
||||
github.com/twbs/bootstrap v5.2.3+incompatible/go.mod h1:fZTSrkpSf0/HkL0IIJzvVspTt1r9zuf7XlZau8kpcY0=
|
||||
github.com/FortAwesome/Font-Awesome v0.0.0-20240716171331-37eff7fa00de/go.mod h1:IUgezN/MFpCDIlFezw3L8j83oeiIuYoj28Miwr/KUYo=
|
||||
github.com/matrix-org/docsy v0.0.0-20241106102557-ec7b98ee4014 h1:CNvxuuURuxkEjA0QN+lRKELc7PRDsX270e8v4GDF3II=
|
||||
github.com/matrix-org/docsy v0.0.0-20241106102557-ec7b98ee4014/go.mod h1:4Ek1bcdbfU/j8hIatEjNhIs1Yua85FtQf3kLvoYZ0bQ=
|
||||
github.com/twbs/bootstrap v5.3.3+incompatible/go.mod h1:fZTSrkpSf0/HkL0IIJzvVspTt1r9zuf7XlZau8kpcY0=
|
||||
|
@ -1,39 +0,0 @@
|
||||
{{/*
|
||||
|
||||
A modified version of the footer.html partial in Docsy.
|
||||
|
||||
*/}}
|
||||
|
||||
{{ $links := .Site.Params.links }}
|
||||
<footer class="py-5 row d-print-none">
|
||||
<div class="container-fluid mx-sm-5">
|
||||
<div class="row">
|
||||
<div class="col-12 text-center text-xs-center order-sm-3">
|
||||
{{ with $links }}
|
||||
{{ with index . "developer"}}
|
||||
{{ template "footer-links-block" . }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-12 text-center py-2 order-sm-3">
|
||||
{{ with .Site.Params.copyright }}<small>© {{ now.Year}} {{ .}}</small>{{ end }}
|
||||
{{ if not .Site.Params.ui.footer_about_disable }}
|
||||
{{ with .Site.GetPage "about" }}<p class="mt-2"><a href="{{ .RelPermalink }}">{{ .Title }}</a></p>{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
{{ define "footer-links-block" }}
|
||||
<ul class="list-inline mb-0">
|
||||
{{ range . }}
|
||||
<li class="list-inline-item mx-2 h3" data-toggle="tooltip" data-placement="top" title="{{ .name }}" aria-label="{{ .name }}">
|
||||
<a class="text-dark" target="_blank" rel="noopener noreferrer" href="{{ .url }}">
|
||||
<i class="{{ .icon }}"></i>
|
||||
</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ end }}
|
@ -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…
Reference in New Issue