diff options
Diffstat (limited to 'layouts')
-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> |