mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-03-29 07:24:09 +02:00
Update footer partial
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
This commit is contained in:
parent
37cec7f6d3
commit
567f6571d3
|
|
@ -122,8 +122,11 @@ Custom SCSS for the Matrix spec
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Customise footer */
|
/* Customise footer */
|
||||||
footer {
|
.td-footer {
|
||||||
box-shadow: 0px 0px 8px rgba(179, 179, 179, 0.25);
|
box-shadow: 0px 0px 8px rgba(179, 179, 179, 0.25);
|
||||||
|
padding-top: 2rem;
|
||||||
|
color: var(--bs-body-color);
|
||||||
|
background-color: var(--bs-body-color-bg);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Auto numbering for headings */
|
/* Auto numbering for headings */
|
||||||
|
|
|
||||||
17
config.toml
17
config.toml
|
|
@ -55,7 +55,6 @@ description = "Home of the Matrix specification for decentralised communication"
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
copyright = "The Matrix.org Foundation CIC"
|
copyright = "The Matrix.org Foundation CIC"
|
||||||
privacy_policy = "https://matrix.org/legal/privacy-notice"
|
|
||||||
|
|
||||||
[params.version]
|
[params.version]
|
||||||
# must be one of "unstable", "current", "historical"
|
# must be one of "unstable", "current", "historical"
|
||||||
|
|
@ -71,8 +70,6 @@ current_version_url = "https://spec.matrix.org/latest"
|
||||||
|
|
||||||
# User interface configuration
|
# User interface configuration
|
||||||
[params.ui]
|
[params.ui]
|
||||||
# Set to true to disable the About link in the site footer
|
|
||||||
footer_about_disable = false
|
|
||||||
# Collapse HTTP API and event <details> elements
|
# Collapse HTTP API and event <details> elements
|
||||||
rendered_data_collapsed = false
|
rendered_data_collapsed = false
|
||||||
# Hide the search entry in the sidebar
|
# Hide the search entry in the sidebar
|
||||||
|
|
@ -88,22 +85,28 @@ sidebar_menu_compact = true
|
||||||
# icon = "fa fa-envelope"
|
# icon = "fa fa-envelope"
|
||||||
# desc = "Discussion and help from your fellow users"
|
# desc = "Discussion and help from your fellow users"
|
||||||
# Developer relevant links. These will show up on right side of footer and in the community page if you have one.
|
# Developer relevant links. These will show up on right side of footer and in the community page if you have one.
|
||||||
[[params.links.developer]]
|
# [[params.links.developer]]
|
||||||
|
# name = "GitHub"
|
||||||
|
# url = "https://github.com/matrix-org"
|
||||||
|
# icon = "fab fa-github"
|
||||||
|
# desc = "Matrix on GitHub"
|
||||||
|
# Custom links shown in the center of the footer. (Only supported by our fork of docsy's 'footer/central' partial.)
|
||||||
|
[[params.links.bottom]]
|
||||||
name = "GitHub"
|
name = "GitHub"
|
||||||
url = "https://github.com/matrix-org"
|
url = "https://github.com/matrix-org"
|
||||||
icon = "fab fa-github"
|
icon = "fab fa-github"
|
||||||
desc = "Matrix on GitHub"
|
desc = "Matrix on GitHub"
|
||||||
[[params.links.developer]]
|
[[params.links.bottom]]
|
||||||
name = "GitLab"
|
name = "GitLab"
|
||||||
url = "https://gitlab.matrix.org/matrix-org"
|
url = "https://gitlab.matrix.org/matrix-org"
|
||||||
icon = "fab fa-gitlab"
|
icon = "fab fa-gitlab"
|
||||||
desc = "Matrix on GitLab"
|
desc = "Matrix on GitLab"
|
||||||
[[params.links.developer]]
|
[[params.links.bottom]]
|
||||||
name = "YouTube"
|
name = "YouTube"
|
||||||
url = "https://www.youtube.com/channel/UCVFkW-chclhuyYRbmmfwt6w"
|
url = "https://www.youtube.com/channel/UCVFkW-chclhuyYRbmmfwt6w"
|
||||||
icon = "fab fa-youtube"
|
icon = "fab fa-youtube"
|
||||||
desc = "Matrix YouTube channel"
|
desc = "Matrix YouTube channel"
|
||||||
[[params.links.developer]]
|
[[params.links.bottom]]
|
||||||
name = "Twitter"
|
name = "Twitter"
|
||||||
url = "https://twitter.com/matrixdotorg"
|
url = "https://twitter.com/matrixdotorg"
|
||||||
icon = "fab fa-twitter"
|
icon = "fab fa-twitter"
|
||||||
|
|
|
||||||
|
|
@ -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 }}
|
|
||||||
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…
Reference in a new issue