diff options
Diffstat (limited to 'layouts/articles')
-rw-r--r-- | layouts/articles/list.html | 42 | ||||
-rw-r--r-- | layouts/articles/single.html | 36 |
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> |