footer: add matrix contact (configurable)

This commit is contained in:
mei (ckie) 2024-04-28 00:53:26 +03:00
parent 115103a1ca
commit eedfb2feaa
Signed by untrusted user: ckie
GPG key ID: 13E79449C0525215
2 changed files with 5 additions and 3 deletions

View file

@ -28,7 +28,8 @@ params:
- ""
contact:
- "info@lix.systems"
email: "info@lix.systems"
matrix: "#space:lix.systems"
copyright: "Content licenced under CC-BY-SA-4.0 or LGPL-2.0-or-later."

View file

@ -25,8 +25,9 @@
</div>
<div class="col-12 col-xl-3 text-center text-xl-start pb-4">
<h5 class="fs-6 fw-semibold text-primary">Contact us</h5>
{{ range .Site.Params.contact }}
<p class="small text-black-61 mb-1">{{ . }}</p>
{{ with .Site.Params.contact }}
<p class="small text-black-61 mb-1">Email: <a href="mailto:{{ .email }}">{{ .email }}</a></p>
<p class="small text-black-61 mb-1">Matrix: <a href="https://matrix.to/#/{{ .matrix }}">{{ .matrix }}</a></p>
{{ end }}
</div>
</div>