From 6f633970a4bdb5fbf44168047adfa3e89aba350b Mon Sep 17 00:00:00 2001 From: xengineering Date: Sun, 17 Jul 2022 14:18:07 +0200 Subject: Add state parameter to Git repositories Three states are supported: - experimental - active - archived --- themes/bare/layouts/_default/single.html | 42 -------------------- themes/bare/layouts/git/list.html | 66 ++++++++++++++++++++++++++++++++ themes/bare/layouts/git/single.html | 43 +++++++++++++++++++++ themes/bare/layouts/index.html | 12 ++++-- 4 files changed, 118 insertions(+), 45 deletions(-) delete mode 100644 themes/bare/layouts/_default/single.html create mode 100644 themes/bare/layouts/git/list.html create mode 100644 themes/bare/layouts/git/single.html (limited to 'themes') diff --git a/themes/bare/layouts/_default/single.html b/themes/bare/layouts/_default/single.html deleted file mode 100644 index b37b232..0000000 --- a/themes/bare/layouts/_default/single.html +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - {{.Params.name}} - - - - - - - - - -
- -

{{.Params.name}}

- -
-

{{ .Params.description }}

-

Browse source code: cgit tree

-

Get updates: Atom feed

-

Clone repository: git clone https://cgit.xengineering.eu/{{ .Params.name }}

-
- - {{.Content}} - -
-
- - -
- - - - diff --git a/themes/bare/layouts/git/list.html b/themes/bare/layouts/git/list.html new file mode 100644 index 0000000..be97eb3 --- /dev/null +++ b/themes/bare/layouts/git/list.html @@ -0,0 +1,66 @@ + + + + + + + + + xengineering + + + + + + + + + +
+ +

Git repositories

+

This page shows all of my Git repositories. They are ordered by + their state attribute, which is defined in each section.

+ +

Active repositories

+

The content of active repositories can be used right now.

+ + +

Experimental repositories

+

Experimental repositories are not ready to be used but maybe interesting enough to have a look at it.

+ + +

Archived repositories

+

Archived repositories will not be improved in the future unless the state will change.

+ + +
+
+ + +
+ + + + + diff --git a/themes/bare/layouts/git/single.html b/themes/bare/layouts/git/single.html new file mode 100644 index 0000000..82aa0d2 --- /dev/null +++ b/themes/bare/layouts/git/single.html @@ -0,0 +1,43 @@ + + + + + + + + + {{.Params.name}} + + + + + + + + + +
+ +

{{.Params.name}}

+ +
+

{{ .Params.description }}

+

State: {{ .Params.state }}

+

Browse source code: cgit tree

+

Get updates: Atom feed

+

Clone repository: git clone https://cgit.xengineering.eu/{{ .Params.name }}

+
+ + {{.Content}} + +
+
+ + +
+ + + + 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}} -

Projects

+

Active Git repositories

+

To also see the archived and experimental repositories have a look at the list of all Git repositories.

+

-- cgit v1.2.3-70-g09d2