Add quicklinks

This commit is contained in:
Rebecca Turner 2024-09-06 22:31:04 -07:00
parent 048d0e9a54
commit 2de52f9546
Signed by: rbt
SSH key fingerprint: SHA256:HU9KTlGeHEBIp12MT4UHG0uc//NRNoJMWfzVGX3igu4
3 changed files with 96 additions and 0 deletions

View file

@ -0,0 +1,8 @@
---
title: "Quick Links"
description: "Just the Lix links and very little else"
date: "2024-09-06"
author: "Lix Team"
# Use our special template that renders the `links.yaml`.
layout: quicklinks
---

View file

@ -0,0 +1,38 @@
---
# This defines the cards that appear in `index.md`
- label: user manual
url: https://docs.lix.systems/manual/lix/stable/
- label: (nightly)
url: https://docs.lix.systems/manual/lix/nightly/
- label: git repo
url: https://git.lix.systems/lix-project/lix
- label: issue tracker
url: https://git.lix.systems/lix-project/lix/issues
- label: lix-installer
url: https://git.lix.systems/lix-project/lix-installer
- label: lix-website
url: https://git.lix.systems/lix-project/lix-website
- label: code review
url: https://gerrit.lix.systems/
- label: buildbot (ci)
url: https://buildbot.lix.systems/
- label: gitiles
url: https://gerrit.lix.systems/plugins/gitiles/lix
- label: wiki
url: https://wiki.lix.systems/books
- label: matrix (chat)
url: https://matrix.to/#/#space:lix.systems
- label: |
`git clone ssh://gerrit.lix.systems:2022/lix`

View file

@ -0,0 +1,50 @@
{{ define "main" }}
<section class="section blog-single py-5">
<div class="container">
<div class="row justify-content-center pb-5">
<div class="col-12">
{{ with .Title | safeHTML }}
<h2 class="display-2 fw-bold text-center text-primary pb-3">{{ . }}</h2>
{{ end }}
{{ with .Params.description }}
<p class="text-black-61 text-center pb-3">{{ . }}</p>
{{ end }}
</div>
</div>
<div class="row pb-5">
<div class="col-12 d-flex justify-content-center">
<div class="blog-content">
{{ .Content }}
{{ $data := dict }}
{{ $path := "links.yaml" }}
{{ with .Resources.Get $path }}
{{ with . | transform.Unmarshal }}
{{ $data = . }}
{{ end }}
{{ else }}
{{ errorf "Unable to get quicklinks %q" $path }}
{{ end }}
<div class="flex">
{{ range $data }}
{{ with .url }}
<a href="{{ . }}">
{{- end -}}
<div class="btn btn-primary text-light px-3 mt-2">
{{- .label | markdownify -}}
</div>
{{- with .url -}}
</a>
{{- end -}}
{{ end }}
</div>
</div>
</div>
</div>
<div class="row pb-5">
</div>
</div>
</section>
{{ end }}