diff options
author | xengineering <me@xengineering.eu> | 2022-05-31 08:40:34 +0200 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2022-05-31 08:40:34 +0200 |
commit | d2cce2c11cbabebab82243b850bcd7dc0a68cab2 (patch) | |
tree | f07cbdc84fe418495cfea6701118bfa89467e948 | |
parent | 0594100b0d382af79d989be67f6bb82c808180c9 (diff) | |
download | website-d2cce2c11cbabebab82243b850bcd7dc0a68cab2.tar website-d2cce2c11cbabebab82243b850bcd7dc0a68cab2.tar.zst website-d2cce2c11cbabebab82243b850bcd7dc0a68cab2.zip |
Proof of concept for new project page concept
- stores data about a repository in content file
- links on index.html just with name and description
to repository pages
-rw-r--r-- | content/webiot.md | 10 | ||||
-rw-r--r-- | themes/bare/layouts/_default/single.html | 35 | ||||
-rw-r--r-- | themes/bare/layouts/index.html | 5 |
3 files changed, 50 insertions, 0 deletions
diff --git a/content/webiot.md b/content/webiot.md new file mode 100644 index 0000000..71fbef1 --- /dev/null +++ b/content/webiot.md @@ -0,0 +1,10 @@ +{ + "heading":"webiot", + "description":"Small webserver for my personal Internet of Things (IoT)" +} + +Some stuff + +- uno +- dos +- three diff --git a/themes/bare/layouts/_default/single.html b/themes/bare/layouts/_default/single.html new file mode 100644 index 0000000..d62873e --- /dev/null +++ b/themes/bare/layouts/_default/single.html @@ -0,0 +1,35 @@ +<!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="../libweb.css" type="text/css"> + + </head> + + <body> + + <main> + + <h1>{{.Params.heading}}</h1> + + {{.Content}} + + <br> + <hr> + <footer>License: <a href="https://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA</a></footer> + + </main> + + </body> + +</html> diff --git a/themes/bare/layouts/index.html b/themes/bare/layouts/index.html index 0bb2fdb..bddd4d9 100644 --- a/themes/bare/layouts/index.html +++ b/themes/bare/layouts/index.html @@ -31,6 +31,11 @@ {{.Content}} + <ul> + {{ $page := .GetPage "webiot.md" }} + <li><a href="{{ $page.Permalink }}">{{ $page.Params.heading }}</a> - {{$page.Description}}</li> + </ul> + <br> <hr> <footer>License: <a href="https://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA</a></footer> |