Add quicklinks #37
8
content/quicklinks/index.md
Normal file
8
content/quicklinks/index.md
Normal 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
|
||||||
|
---
|
38
content/quicklinks/links.yaml
Normal file
38
content/quicklinks/links.yaml
Normal 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://{username}@gerrit.lix.systems:2022/lix`
|
50
themes/lix/layouts/page/quicklinks.html
Normal file
50
themes/lix/layouts/page/quicklinks.html
Normal 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 }}
|
Loading…
Reference in a new issue