added easy footer link generation

This commit is contained in:
Roxie Gibson 2021-03-30 22:50:36 +01:00
parent f4f8bc596d
commit 631e6b5934
Signed by untrusted user: roxxers
GPG Key ID: 5D0140EDEE123F4D
3 changed files with 20 additions and 0 deletions

View File

@ -19,3 +19,13 @@ theme = "cloud.autonomic.zone"
docsfaq = "https://docs.cloud.autonomic.zone/faq/"
getinvolved = "https://docs.cloud.autonomic.zone/contribute/"
autonomicSite = "https://autonomic.zone"
[[params.links.footer]]
name = "Source Code"
link = "https://git.autonomic.zone/coop-cloud"
[[params.links.footer]]
name = "Documentation"
link = "https://docs.cloud.autonomic.zone"
[[params.links.footer]]
name = "Matrix"
link = "https://matrix.to/#/#coopcloud:autonomic.zone?via=autonomic.zone"

View File

@ -10,6 +10,7 @@ $bg-color: #EFEFEF;
$footer-background-color: $coopcloud-blue;
$footer-color: true;
$footer-padding: 3rem 1.5rem 3rem;
$danger: $autonomic-red;
@ -162,6 +163,10 @@ hr {
}
footer .content a {
color: $white;
}
// Do not show server image when using mobile viewport
// Is a little bigger than the actual mobile viewport in bulma due to the text overlapping with the server icon
@media all and (min-width: 769px) {

View File

@ -2,6 +2,11 @@
<footer class="footer">
<div class="content has-text-centered has-text-white">
<p class="block">
{{ range $index, $item := site.Params.links.footer }}
{{ if gt $index 0 }}| {{ end }}<a href="{{ $item.link }}">{{ $item.name }}</a>
{{ end }}
</p>
<p>
Anti-Copyright {{ now.Format "2006"}} Autonomic Cooperative
</p>