summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2022-07-17 14:18:07 +0200
committerxengineering <me@xengineering.eu>2022-07-17 14:18:07 +0200
commit6f633970a4bdb5fbf44168047adfa3e89aba350b (patch)
treeca8633f38e79cf3f4ba73630251d8839ccee33ff
parent6917e0f811a1c04abe77cbf625dfe6206a03ef30 (diff)
downloadwebsite-6f633970a4bdb5fbf44168047adfa3e89aba350b.tar
website-6f633970a4bdb5fbf44168047adfa3e89aba350b.tar.zst
website-6f633970a4bdb5fbf44168047adfa3e89aba350b.zip
Add state parameter to Git repositories
Three states are supported: - experimental - active - archived
-rw-r--r--content/git/archinstall.md3
-rw-r--r--content/git/birdscan.md3
-rw-r--r--content/git/dotfiles.md3
-rw-r--r--content/git/iot-barcode-scanner.md3
-rw-r--r--content/git/ledcontrol.md3
-rw-r--r--content/git/libweb.md3
-rw-r--r--content/git/picontrol.md3
-rw-r--r--content/git/pkgbuilds.md3
-rw-r--r--content/git/scripts.md3
-rw-r--r--content/git/stlscope.md3
-rw-r--r--content/git/stm32f103c8-examples.md3
-rw-r--r--content/git/web-template.md3
-rw-r--r--content/git/webiot.md3
-rw-r--r--content/git/website.md3
-rw-r--r--content/git/xbackup.md3
-rw-r--r--content/git/xbot.md3
-rw-r--r--themes/bare/layouts/git/list.html66
-rw-r--r--themes/bare/layouts/git/single.html (renamed from themes/bare/layouts/_default/single.html)1
-rw-r--r--themes/bare/layouts/index.html12
19 files changed, 108 insertions, 19 deletions
diff --git a/content/git/archinstall.md b/content/git/archinstall.md
index 7aa10bc..758e9ee 100644
--- a/content/git/archinstall.md
+++ b/content/git/archinstall.md
@@ -1,6 +1,7 @@
{
"name":"archinstall",
- "description":"Installation script for the Arch Linux operating system"
+ "description":"Installation script for the Arch Linux operating system",
+ "state":"archived"
}
Note: This project is archived. I will probably not continue to develop it.
diff --git a/content/git/birdscan.md b/content/git/birdscan.md
index fae8681..2cc7143 100644
--- a/content/git/birdscan.md
+++ b/content/git/birdscan.md
@@ -1,6 +1,7 @@
{
"name":"birdscan",
- "description":"Software to take beautiful pictures of birds with a Raspberry Pi camera"
+ "description":"Software to take beautiful pictures of birds with a Raspberry Pi camera",
+ "state":"active"
}
## Future development
diff --git a/content/git/dotfiles.md b/content/git/dotfiles.md
index b205517..bc522a3 100644
--- a/content/git/dotfiles.md
+++ b/content/git/dotfiles.md
@@ -1,4 +1,5 @@
{
"name":"dotfiles",
- "description":"Git repository to track my personal GNU/Linux dotfiles"
+ "description":"Git repository to track my personal GNU/Linux dotfiles",
+ "state":"active"
}
diff --git a/content/git/iot-barcode-scanner.md b/content/git/iot-barcode-scanner.md
index abf30ec..28dd391 100644
--- a/content/git/iot-barcode-scanner.md
+++ b/content/git/iot-barcode-scanner.md
@@ -1,4 +1,5 @@
{
"name":"iot-barcode-scanner",
- "description":"Service that makes barcode scanners available on the network for IoT usage"
+ "description":"Service that makes barcode scanners available on the network for IoT usage",
+ "state":"archived"
}
diff --git a/content/git/ledcontrol.md b/content/git/ledcontrol.md
index 3f35085..e92802d 100644
--- a/content/git/ledcontrol.md
+++ b/content/git/ledcontrol.md
@@ -1,4 +1,5 @@
{
"name":"ledcontrol",
- "description":"Firmware project for the STM32F103C8T6 microcontroller to control LED strips"
+ "description":"Firmware project for the STM32F103C8T6 microcontroller to control LED strips",
+ "state":"experimental"
}
diff --git a/content/git/libweb.md b/content/git/libweb.md
index 95e25be..7c3041c 100644
--- a/content/git/libweb.md
+++ b/content/git/libweb.md
@@ -1,4 +1,5 @@
{
"name":"libweb",
- "description":"Repository with reusable components for web development"
+ "description":"Repository with reusable components for web development",
+ "state":"active"
}
diff --git a/content/git/picontrol.md b/content/git/picontrol.md
index 48b9cdb..697548f 100644
--- a/content/git/picontrol.md
+++ b/content/git/picontrol.md
@@ -1,6 +1,7 @@
{
"name":"picontrol",
- "description":"Small web application to shutdown or reboot your Raspberry Pi"
+ "description":"Small web application to shutdown or reboot your Raspberry Pi",
+ "state":"archived"
}
Note: This project is archived. I will not continue to develop it.
diff --git a/content/git/pkgbuilds.md b/content/git/pkgbuilds.md
index 9fe5f33..9f44b01 100644
--- a/content/git/pkgbuilds.md
+++ b/content/git/pkgbuilds.md
@@ -1,4 +1,5 @@
{
"name":"pkgbuilds",
- "description":"Repository with packaging files for the Arch Linux build system"
+ "description":"Repository with packaging files for the Arch Linux build system",
+ "state":"active"
}
diff --git a/content/git/scripts.md b/content/git/scripts.md
index c74cc49..062c306 100644
--- a/content/git/scripts.md
+++ b/content/git/scripts.md
@@ -1,4 +1,5 @@
{
"name":"scripts",
- "description":"Some useful scripts"
+ "description":"Some useful scripts",
+ "state":"active"
}
diff --git a/content/git/stlscope.md b/content/git/stlscope.md
index 30e55d0..b412880 100644
--- a/content/git/stlscope.md
+++ b/content/git/stlscope.md
@@ -1,4 +1,5 @@
{
"name":"stlscope",
- "description":"Simple program to view .stl files"
+ "description":"Simple program to view .stl files",
+ "state":"active"
}
diff --git a/content/git/stm32f103c8-examples.md b/content/git/stm32f103c8-examples.md
index 2cb8fc0..2f1d578 100644
--- a/content/git/stm32f103c8-examples.md
+++ b/content/git/stm32f103c8-examples.md
@@ -1,6 +1,7 @@
{
"name":"stm32f103c8-examples",
- "description":"Example C code for the STM32F103C8T6 microcontroller"
+ "description":"Example C code for the STM32F103C8T6 microcontroller",
+ "state":"archived"
}
Note: This project is archived. I will not continue to develop it.
diff --git a/content/git/web-template.md b/content/git/web-template.md
index 175707e..0ea81de 100644
--- a/content/git/web-template.md
+++ b/content/git/web-template.md
@@ -1,6 +1,7 @@
{
"name":"web-template",
- "description":"Template project to simplify development of web applications"
+ "description":"Template project to simplify development of web applications",
+ "state":"archived"
}
Note: This project is archived. I will not continue to develop it.
diff --git a/content/git/webiot.md b/content/git/webiot.md
index dcfafed..1273e25 100644
--- a/content/git/webiot.md
+++ b/content/git/webiot.md
@@ -1,4 +1,5 @@
{
"name":"webiot",
- "description":"Small webserver for my personal Internet of Things (IoT)"
+ "description":"Small webserver for my personal Internet of Things (IoT)",
+ "state":"active"
}
diff --git a/content/git/website.md b/content/git/website.md
index 99833b9..c724ea3 100644
--- a/content/git/website.md
+++ b/content/git/website.md
@@ -1,4 +1,5 @@
{
"name":"website",
- "description":"My website as a Git repository"
+ "description":"My website as a Git repository",
+ "state":"active"
}
diff --git a/content/git/xbackup.md b/content/git/xbackup.md
index b9624c3..150231c 100644
--- a/content/git/xbackup.md
+++ b/content/git/xbackup.md
@@ -1,4 +1,5 @@
{
"name":"xbackup",
- "description":"Convenience wrapper around the Borg backup tool"
+ "description":"Convenience wrapper around the Borg backup tool",
+ "state":"active"
}
diff --git a/content/git/xbot.md b/content/git/xbot.md
index 5a9d7cd..7e236d5 100644
--- a/content/git/xbot.md
+++ b/content/git/xbot.md
@@ -1,4 +1,5 @@
{
"name":"xbot",
- "description":"Software to create simpel chat bots for the XMPP/Jabber protocol"
+ "description":"Software to create simpel chat bots for the XMPP/Jabber protocol",
+ "state":"archived"
}
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 @@
+<!DOCTYPE html>
+
+<!--
+ vim: shiftwidth=4 tabstop=4 noexpandtab
+-->
+
+<html>
+
+ <head>
+
+ <title>xengineering</title>
+
+ <meta charset="utf-8"/>
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <link rel="stylesheet" href="{{ "libweb.css" | absURL }}" type="text/css">
+
+ </head>
+
+ <body>
+
+ <main>
+
+ <h2>Git repositories</h2>
+ <p>This page shows all of my Git repositories. They are ordered by
+ their state attribute, which is defined in each section.</p>
+
+ <h4>Active repositories</h4>
+ <p>The content of active repositories can be used right now.</p>
+ <ul>
+ {{- range.Pages }}
+ {{ if eq .Params.state "active" }}
+ <li><a href="{{ .RelPermalink }}">{{ .Params.name }}</a> - {{.Description}}</li>
+ {{ end }}
+ {{ end -}}
+ </ul>
+
+ <h4>Experimental repositories</h4>
+ <p>Experimental repositories are not ready to be used but maybe interesting enough to have a look at it.</p>
+ <ul>
+ {{- range.Pages }}
+ {{ if eq .Params.state "experimental" }}
+ <li><a href="{{ .RelPermalink }}">{{ .Params.name }}</a> - {{.Description}}</li>
+ {{ end }}
+ {{ end -}}
+ </ul>
+
+ <h4>Archived repositories</h4>
+ <p>Archived repositories will not be improved in the future unless the state will change.</p>
+ <ul>
+ {{- range.Pages }}
+ {{ if eq .Params.state "archived" }}
+ <li><a href="{{ .RelPermalink }}">{{ .Params.name }}</a> - {{.Description}}</li>
+ {{ end }}
+ {{ end -}}
+ </ul>
+
+ <br>
+ <hr>
+ <footer>License: <a href="https://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA</a></footer>
+
+ </main>
+
+ </body>
+
+</html>
+
diff --git a/themes/bare/layouts/_default/single.html b/themes/bare/layouts/git/single.html
index b37b232..82aa0d2 100644
--- a/themes/bare/layouts/_default/single.html
+++ b/themes/bare/layouts/git/single.html
@@ -24,6 +24,7 @@
<div class="card">
<p class="card-first-item">{{ .Params.description }}</p>
+ <p>State: {{ .Params.state }}</p>
<p>Browse source code: <a href="https://cgit.xengineering.eu/{{ .Params.name }}/tree">cgit tree</a></p>
<p>Get updates: <a href="https://cgit.xengineering.eu/{{ .Params.name }}/atom">Atom feed</a></p>
<p style="" class="card-last-item">Clone repository: git clone https://cgit.xengineering.eu/{{ .Params.name }}</p>
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>