diff options
author | xengineering <me@xengineering.eu> | 2022-07-17 14:18:07 +0200 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2022-07-17 14:18:07 +0200 |
commit | 6f633970a4bdb5fbf44168047adfa3e89aba350b (patch) | |
tree | ca8633f38e79cf3f4ba73630251d8839ccee33ff /themes/bare/layouts/index.html | |
parent | 6917e0f811a1c04abe77cbf625dfe6206a03ef30 (diff) | |
download | website-6f633970a4bdb5fbf44168047adfa3e89aba350b.tar website-6f633970a4bdb5fbf44168047adfa3e89aba350b.tar.zst website-6f633970a4bdb5fbf44168047adfa3e89aba350b.zip |
Add state parameter to Git repositories
Three states are supported:
- experimental
- active
- archived
Diffstat (limited to 'themes/bare/layouts/index.html')
-rw-r--r-- | themes/bare/layouts/index.html | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/themes/bare/layouts/index.html b/themes/bare/layouts/index.html index 2435d91..ecf8ad9 100644 --- a/themes/bare/layouts/index.html +++ b/themes/bare/layouts/index.html @@ -31,14 +31,20 @@ {{.Content}} - <h2>Projects</h2> + <h2>Active Git repositories</h2> <ul> - {{range.Site.RegularPages}} + {{ range.Site.RegularPages }} + {{ if eq .Section "git" }} + {{ if eq .Params.state "active" }} <li><a href="{{.Permalink}}">{{.Params.name}}</a> - {{.Description}}</li> - {{end}} + {{ end }} + {{ end }} + {{ end }} </ul> + <p>To also see the archived and experimental repositories have a look at the <a href="/git">list of all Git repositories</a>.</p> + <br> <hr> <footer>License: <a href="https://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA</a></footer> |