summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2023-03-13 16:19:04 +0100
committerPatrick Spek <p.spek@tyil.nl>2023-03-13 16:19:04 +0100
commited54b79220481f921ca90ced4b923e6369a68225 (patch)
treea5f106b1d1a02923e5d71e4e8daa905bc687ebff
parentdd7ebf0815d33e93a3cec6a046b88bb4997697d9 (diff)
Add projects page
-rw-r--r--assets/theme/main.scss33
-rw-r--r--content/projects/_index.md7
-rw-r--r--content/projects/bashtard/_index.md17
-rw-r--r--content/projects/bashtard/releases/1.0.0.md9
-rw-r--r--content/projects/bashtard/releases/_index.md4
-rw-r--r--layouts/_default/baseof.html2
-rw-r--r--layouts/project-release/list.html12
-rw-r--r--layouts/project-release/single.html20
-rw-r--r--layouts/projects/list.html21
9 files changed, 123 insertions, 2 deletions
diff --git a/assets/theme/main.scss b/assets/theme/main.scss
index 3221dd3..8b62b23 100644
--- a/assets/theme/main.scss
+++ b/assets/theme/main.scss
@@ -109,6 +109,37 @@ section.admonition {
}
}
+section.project {
+ border-top: 1px solid var(--bodyForegroundColor);
+ padding: 0.5rem 0.5rem;
+
+ h2 {
+ margin: 0.5rem 0rem;
+
+ small {
+ margin-left: 1.5rem;
+ font-weight: normal;
+ font-size: small;
+ }
+ }
+
+ p {
+ margin-top: 0;
+ }
+
+ nav.project {
+ a, a:visited {
+ margin: 0.5rem;
+ text-decoration: underline;
+ color: var(--bodyForegroundColor);
+ }
+
+ a::before {
+ content: "ยป ";
+ }
+ }
+}
+
@media(min-width: $mainWidth) {
section.admonition {
display: grid;
@@ -145,7 +176,7 @@ section.admonition {
}
// Navigation bar
-nav {
+nav.main {
padding-bottom: 8px;
border-bottom: double var(--bodyForegroundColor);
text-align: center;
diff --git a/content/projects/_index.md b/content/projects/_index.md
new file mode 100644
index 0000000..6907ad3
--- /dev/null
+++ b/content/projects/_index.md
@@ -0,0 +1,7 @@
+---
+title: Projects
+---
+
+This page lists all projects I actively work on, with some information about
+them, releases, any packages, and documentation to get people started on using
+them.
diff --git a/content/projects/bashtard/_index.md b/content/projects/bashtard/_index.md
new file mode 100644
index 0000000..9e31798
--- /dev/null
+++ b/content/projects/bashtard/_index.md
@@ -0,0 +1,17 @@
+---
+title: Bashtard
+repository: https://git.tyil.nl/bashtard
+languages:
+- Bash
+---
+
+Bashtard is a configuration management system built on the idea of simplicity
+for the user. It lets you write reasonably simple Bash scripts to configure
+your systems, while providing just enough abstractions to make it easy to
+work with various base systems.
+
+It is similar in purpose as other configuration management tools, such as
+Ansible and Puppet, however Bashtard tries to keep dependencies to a minimum
+while still providing some abstractions to make the process easier. This
+allows Bashtard to run in more constrained environments, with the abstractions
+allowing it to manage a varied array of systems in a single network.
diff --git a/content/projects/bashtard/releases/1.0.0.md b/content/projects/bashtard/releases/1.0.0.md
new file mode 100644
index 0000000..ef54893
--- /dev/null
+++ b/content/projects/bashtard/releases/1.0.0.md
@@ -0,0 +1,9 @@
+---
+title: Bashtard v1.0.0
+date: 2022-05-06
+type: project-release
+packages:
+ bashtard-1.0.0.tar.gz: https://dist.tyil.nl/packages/bashtard/bashtard-1.0.0.tar.gz
+---
+
+This is the initial release of Bashtard.
diff --git a/content/projects/bashtard/releases/_index.md b/content/projects/bashtard/releases/_index.md
new file mode 100644
index 0000000..c98ddda
--- /dev/null
+++ b/content/projects/bashtard/releases/_index.md
@@ -0,0 +1,4 @@
+---
+title: Bashtard
+type: project-release
+---
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 98e77f7..74338f3 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -17,7 +17,7 @@
{{- block "body" . }}
<header id="site-header">
<div class="container">
- <nav>
+ <nav class="main">
<a href="/" class="brand-name">{{ .Site.Title }}</a>
{{- range sort .Site.Sections "Title" }}
<a href="{{ .Permalink }}">{{ .Title }}</a>
diff --git a/layouts/project-release/list.html b/layouts/project-release/list.html
new file mode 100644
index 0000000..d288169
--- /dev/null
+++ b/layouts/project-release/list.html
@@ -0,0 +1,12 @@
+{{- define "main" }}
+<h1>{{ .Parent.Title }} Releases</h1>
+{{ .Content }}
+<ul>
+ {{- range .Pages }}
+ <li>
+ <a href="{{ .Permalink }}">{{ .Title }}</a>
+ ({{ .Date | dateFormat "2006-01-02" }})
+ </li>
+ {{- end }}
+</ul>
+{{- end }}
diff --git a/layouts/project-release/single.html b/layouts/project-release/single.html
new file mode 100644
index 0000000..e422699
--- /dev/null
+++ b/layouts/project-release/single.html
@@ -0,0 +1,20 @@
+{{ define "main" }}
+<article>
+ <header>
+ <h1>{{ .Title }}</h1>
+ </header>
+ <main>
+ {{ .Content }}
+ </main>
+ <footer>
+ {{- with .Params.packages }}
+ Pre-built packages:
+ <ul>
+ {{- range $key, $value := . }}
+ <li><a href="{{ $value }}">{{ $key }}</a></li>
+ {{- end }}
+ </ul>
+ {{- end }}
+ </footer>
+</article>
+{{ end }}
diff --git a/layouts/projects/list.html b/layouts/projects/list.html
new file mode 100644
index 0000000..de50a9c
--- /dev/null
+++ b/layouts/projects/list.html
@@ -0,0 +1,21 @@
+{{- define "main" }}
+<h1>{{ .Title }}</h1>
+{{ .Content }}
+{{- range .Sections }}
+ <section class="project">
+ <h2>
+ {{ .Title }}
+ <small>
+ {{- range .Params.languages }}
+ {{ . }}
+ {{- end }}
+ </small>
+ </h2>
+ {{ .Content }}
+ <nav class="project">
+ <a href="{{ .Permalink }}releases">Releases</a>
+ <a href="{{ .Params.repository }}">Sources</a>
+ </nav>
+ </section>
+{{- end }}
+{{- end }}