From 2de52f954625d410f9b6cce86b924b8af2c7485f Mon Sep 17 00:00:00 2001 From: Rebecca Turner Date: Fri, 6 Sep 2024 22:31:04 -0700 Subject: [PATCH 1/2] Add quicklinks --- content/quicklinks/index.md | 8 ++++ content/quicklinks/links.yaml | 38 +++++++++++++++++++ themes/lix/layouts/page/quicklinks.html | 50 +++++++++++++++++++++++++ 3 files changed, 96 insertions(+) create mode 100644 content/quicklinks/index.md create mode 100644 content/quicklinks/links.yaml create mode 100644 themes/lix/layouts/page/quicklinks.html diff --git a/content/quicklinks/index.md b/content/quicklinks/index.md new file mode 100644 index 00000000..c73c51c3 --- /dev/null +++ b/content/quicklinks/index.md @@ -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 +--- diff --git a/content/quicklinks/links.yaml b/content/quicklinks/links.yaml new file mode 100644 index 00000000..4efc00a2 --- /dev/null +++ b/content/quicklinks/links.yaml @@ -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` diff --git a/themes/lix/layouts/page/quicklinks.html b/themes/lix/layouts/page/quicklinks.html new file mode 100644 index 00000000..f228d8d6 --- /dev/null +++ b/themes/lix/layouts/page/quicklinks.html @@ -0,0 +1,50 @@ +{{ define "main" }} +
+
+
+
+ {{ with .Title | safeHTML }} +

{{ . }}

+ {{ end }} + {{ with .Params.description }} +

{{ . }}

+ {{ end }} +
+
+
+
+
+ {{ .Content }} + + {{ $data := dict }} + {{ $path := "links.yaml" }} + {{ with .Resources.Get $path }} + {{ with . | transform.Unmarshal }} + {{ $data = . }} + {{ end }} + {{ else }} + {{ errorf "Unable to get quicklinks %q" $path }} + {{ end }} + +
+ {{ range $data }} + {{ with .url }} + + {{- end -}} +
+ {{- .label | markdownify -}} +
+ {{- with .url -}} +
+ {{- end -}} + {{ end }} +
+ +
+
+
+
+
+
+
+{{ end }} From 91d0546087e7c1f4eab6743c6ee411b5e3e4e0a3 Mon Sep 17 00:00:00 2001 From: Rebecca Turner Date: Sat, 7 Sep 2024 14:40:18 -0700 Subject: [PATCH 2/2] Add username to Gerrit clone instructions --- content/quicklinks/links.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/quicklinks/links.yaml b/content/quicklinks/links.yaml index 4efc00a2..bc69ef9a 100644 --- a/content/quicklinks/links.yaml +++ b/content/quicklinks/links.yaml @@ -35,4 +35,4 @@ url: https://matrix.to/#/#space:lix.systems - label: | - `git clone ssh://gerrit.lix.systems:2022/lix` + `git clone ssh://{username}@gerrit.lix.systems:2022/lix`