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 }}