diff options
author | xengineering <me@xengineering.eu> | 2022-05-31 13:23:55 +0200 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2022-05-31 14:15:52 +0200 |
commit | 4a292ac06320580e07f0a0689f6b2a77bc2e3495 (patch) | |
tree | d6111fe12e281c91caa48a7d8d5d5e0927fbf475 | |
parent | 8b10a63cabbb546a9fe759ea27fdb12064d393cd (diff) | |
download | website-4a292ac06320580e07f0a0689f6b2a77bc2e3495.tar website-4a292ac06320580e07f0a0689f6b2a77bc2e3495.tar.zst website-4a292ac06320580e07f0a0689f6b2a77bc2e3495.zip |
Finalize structure for content/git/* pages
-rw-r--r-- | content/_index.md | 1 | ||||
-rw-r--r-- | content/git/webiot.md | 2 | ||||
-rw-r--r-- | themes/bare/layouts/_default/single.html | 9 | ||||
-rw-r--r-- | themes/bare/layouts/index.html | 2 |
4 files changed, 10 insertions, 4 deletions
diff --git a/content/_index.md b/content/_index.md index 78d77fc..55355ac 100644 --- a/content/_index.md +++ b/content/_index.md @@ -1,5 +1,4 @@ { - "title":"xengineering", "heading":"xengineering", "email":"me@xengineering.eu", "xmpp":"xengineering@jabber.de", diff --git a/content/git/webiot.md b/content/git/webiot.md index 71fbef1..f74bf47 100644 --- a/content/git/webiot.md +++ b/content/git/webiot.md @@ -1,5 +1,5 @@ { - "heading":"webiot", + "name":"webiot", "description":"Small webserver for my personal Internet of Things (IoT)" } diff --git a/themes/bare/layouts/_default/single.html b/themes/bare/layouts/_default/single.html index 319d849..0850701 100644 --- a/themes/bare/layouts/_default/single.html +++ b/themes/bare/layouts/_default/single.html @@ -20,7 +20,14 @@ <main> - <h1>{{.Params.heading}}</h1> + <h1>{{.Params.name}}</h1> + + <div class="card"> + <p class="card-first-item">Description: {{ .Params.description }}</p> + <p>Browse source code: <a href="https://cgit.xengineering.eu/{{ .Params.name }}/tree">cgit tree</a></p> + <p>Get updates: <a href="https://cgit.xengineering.eu/{{ .Params.name }}/atom">Atom feed</a></p> + <p style="" class="card-last-item">Clone repository: git clone https://cgit.xengineering.eu/{{ .Params.name }}</p> + </div> {{.Content}} diff --git a/themes/bare/layouts/index.html b/themes/bare/layouts/index.html index 1d2669f..f3decef 100644 --- a/themes/bare/layouts/index.html +++ b/themes/bare/layouts/index.html @@ -33,7 +33,7 @@ <ul> {{ $page := .GetPage "git/webiot.md" }} - <li><a href="{{ $page.Permalink }}">{{ $page.Params.heading }}</a> - {{$page.Description}}</li> + <li><a href="{{ $page.Permalink }}">{{ $page.Params.name }}</a> - {{$page.Description}}</li> </ul> <br> |