-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request 'Add quicklinks' (#37) from quicklinks into main
- Loading branch information
Showing
3 changed files
with
96 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 }} |