summaryrefslogtreecommitdiff
path: root/layouts/articles
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2023-02-04 12:47:04 +0100
committerxengineering <me@xengineering.eu>2023-02-05 14:26:24 +0100
commit78eed530111fdc8640133da5bbf8a5f86d703a50 (patch)
treed232f9dc640b3f1c94b7dda71b9fbef225381d44 /layouts/articles
parent0f29a466be17692b0617736ca58549c4c39e7486 (diff)
downloadwebsite-78eed530111fdc8640133da5bbf8a5f86d703a50.tar
website-78eed530111fdc8640133da5bbf8a5f86d703a50.tar.zst
website-78eed530111fdc8640133da5bbf8a5f86d703a50.zip
Add support for articles
Articles should contain documentation which is constantly updated.
Diffstat (limited to 'layouts/articles')
-rw-r--r--layouts/articles/list.html42
-rw-r--r--layouts/articles/single.html36
2 files changed, 78 insertions, 0 deletions
diff --git a/layouts/articles/list.html b/layouts/articles/list.html
new file mode 100644
index 0000000..72879ad
--- /dev/null
+++ b/layouts/articles/list.html
@@ -0,0 +1,42 @@
+<!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="{{ "style.css" | absURL }}" type="text/css">
+
+ </head>
+
+ <body>
+
+ <header>
+ <nav>
+ <a href="{{ "/" | absURL }}">Home</a>
+ </nav>
+ <h1>Articles</h1>
+ </header>
+
+ <main>
+ <p>A complete list of my articles:</p>
+ <ul>
+ {{- range.Pages }}
+ <li><a href="{{ .RelPermalink }}">{{ .Params.title }}</a></li>
+ {{ end -}}
+ </ul>
+
+ {{ partial "footer.html" . }}
+ </main>
+
+ </body>
+
+</html>
+
diff --git a/layouts/articles/single.html b/layouts/articles/single.html
new file mode 100644
index 0000000..62a23d3
--- /dev/null
+++ b/layouts/articles/single.html
@@ -0,0 +1,36 @@
+<!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="{{ "style.css" | absURL }}" type="text/css">
+
+ </head>
+
+ <body>
+
+ <header>
+ <nav>
+ <a href="{{ "/" | absURL }}">Home</a>
+ <nav>
+ <h1>{{ .Params.Title }}</h1>
+ <p>{{ .Params.Subtitle }}</p>
+ </header>
+
+ <main>
+ {{ .Content }}
+ {{ partial "footer.html" . }}
+ </main>
+
+ </body>
+
+</html>