added easy footer link generation
This commit is contained in:
parent
f4f8bc596d
commit
631e6b5934
10
config.toml
10
config.toml
|
@ -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"
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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>
|
||||
|
|
Reference in New Issue