diff options
author | xengineering <me@xengineering.eu> | 2023-02-04 12:47:04 +0100 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2023-02-05 14:26:24 +0100 |
commit | 78eed530111fdc8640133da5bbf8a5f86d703a50 (patch) | |
tree | d232f9dc640b3f1c94b7dda71b9fbef225381d44 | |
parent | 0f29a466be17692b0617736ca58549c4c39e7486 (diff) | |
download | website-78eed530111fdc8640133da5bbf8a5f86d703a50.tar website-78eed530111fdc8640133da5bbf8a5f86d703a50.tar.zst website-78eed530111fdc8640133da5bbf8a5f86d703a50.zip |
Add support for articles
Articles should contain documentation which is constantly updated.
-rw-r--r-- | layouts/articles/list.html | 42 | ||||
-rw-r--r-- | layouts/articles/single.html | 36 | ||||
-rw-r--r-- | layouts/index.html | 13 |
3 files changed, 89 insertions, 2 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> diff --git a/layouts/index.html b/layouts/index.html index 88d5dd9..5f0754e 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -31,9 +31,18 @@ <li><a href="https://openpgp.org">OpenPGP</a>: <a href="{{.Params.openpgp.file}}">{{.Params.openpgp.fingerprint}}</a></li> </ul> - {{.Content}} + <h3>Articles</h3> + <p>The following list contains links to my articles. They contain + documentation about technology I use.</p> + <ul> + {{ range.Site.RegularPages }} + {{ if eq .Section "articles" }} + <li><a href="{{.Permalink}}">{{.Params.title}}</a></li> + {{ end }} + {{ end }} + </ul> - <h3>My projects</h3> + <h3>Projects</h3> <p>Here is a list of all my published projects. The active ones are regularly used by myself.</p> |