diff options
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/git/list.html | 65 | ||||
-rw-r--r-- | layouts/git/single.html | 46 | ||||
-rw-r--r-- | layouts/index.html | 82 |
3 files changed, 193 insertions, 0 deletions
diff --git a/layouts/git/list.html b/layouts/git/list.html new file mode 100644 index 0000000..65ed807 --- /dev/null +++ b/layouts/git/list.html @@ -0,0 +1,65 @@ +<!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>Git repositories</h1> + </header> + + <main> + <strong>Experimental</strong> + <ul> + {{- range.Pages }} + {{ if eq .Params.state "experimental" }} + <li><a href="{{ .RelPermalink }}">{{ .Params.friendly_name }}</a> - {{.Description}}</li> + {{ end }} + {{ end -}} + </ul> + + <strong>Active</strong> + <ul> + {{- range.Pages }} + {{ if eq .Params.state "active" }} + <li><a href="{{ .RelPermalink }}">{{ .Params.friendly_name }}</a> - {{.Description}}</li> + {{ end }} + {{ end -}} + </ul> + + <strong>Archived</strong> + <ul> + {{- range.Pages }} + {{ if eq .Params.state "archived" }} + <li><a href="{{ .RelPermalink }}">{{ .Params.friendly_name }}</a> - {{.Description}}</li> + {{ end }} + {{ end -}} + </ul> + + <footer> + <hr> + <p>This <a href="{{ "git/website" | absURL }}">website</a> is licensed under <a href="https://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA</a> and developed with <a href="https://simplecss.org/">simple.css</a>.</p> + </footer> + </main> + + </body> + +</html> + diff --git a/layouts/git/single.html b/layouts/git/single.html new file mode 100644 index 0000000..51ccbad --- /dev/null +++ b/layouts/git/single.html @@ -0,0 +1,46 @@ +<!DOCTYPE html> + +<!-- + vim: shiftwidth=4 tabstop=4 noexpandtab +--> + +<html> + + <head> + + <title>{{.Params.friendly_name}}</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> + <a href="https://cgit.xengineering.eu/{{ .Params.name }}">cgit</a> + <a href="https://cgit.xengineering.eu/{{ .Params.name }}/atom">Atom feed</a> + <a href="https://cgit.xengineering.eu/{{ .Params.name }}">Clone URL</a> + <nav> + <h1>{{.Params.friendly_name}}</h1> + <p>{{ .Params.description }}</p> + </header> + + <main> + + <p class="notice">State: <strong>{{ .Params.state }}</strong></p> + + {{.Content}} + + <footer> + <hr> + <p>This <a href="{{ "git/website" | absURL }}">website</a> is licensed under <a href="https://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA</a> and developed with <a href="https://simplecss.org/">simple.css</a>.</p> + </footer> + </main> + + </body> + +</html> diff --git a/layouts/index.html b/layouts/index.html new file mode 100644 index 0000000..85086a9 --- /dev/null +++ b/layouts/index.html @@ -0,0 +1,82 @@ +<!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> + <h1>{{.Params.heading}}</h1> + <p>Free and Open Source software and hardware projects</p> + </header> + + <main> + <h3>Contact</h3> + <ul> + <li>Mail: <a href="mailto:{{.Params.email}}">{{.Params.email}}</a></li> + <li><a href="https://xmpp.org">XMPP</a>: <a href="xmpp:{{.Params.xmpp}}">{{.Params.xmpp}}</a></li> + <li><a href="https://openpgp.org">OpenPGP</a>: <a href="{{.Params.openpgp.file}}">{{.Params.openpgp.fingerprint}}</a></li> + </ul> + + {{.Content}} + + <h3>My projects</h3> + <p>Here is a list of all my published projects. The active ones are + regularly used by myself.</p> + + <strong>Experimental</strong> + <ul> + {{ range.Site.RegularPages }} + {{ if eq .Section "git" }} + {{ if eq .Params.state "experimental" }} + <li><a href="{{.Permalink}}">{{.Params.friendly_name}}</a> - {{.Description}}</li> + {{ end }} + {{ end }} + {{ end }} + </ul> + + <strong>Active</strong> + <ul> + {{ range.Site.RegularPages }} + {{ if eq .Section "git" }} + {{ if eq .Params.state "active" }} + <li><a href="{{.Permalink}}">{{.Params.friendly_name}}</a> - {{.Description}}</li> + {{ end }} + {{ end }} + {{ end }} + </ul> + + <strong>Archived</strong> + <ul> + {{ range.Site.RegularPages }} + {{ if eq .Section "git" }} + {{ if eq .Params.state "archived" }} + <li><a href="{{.Permalink}}">{{.Params.friendly_name}}</a> - {{.Description}}</li> + {{ end }} + {{ end }} + {{ end }} + </ul> + + <footer> + <hr> + <p>This <a href="{{ "git/website" | absURL }}">website</a> is licensed under <a href="https://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA</a> and developed with <a href="https://simplecss.org/">simple.css</a>.</p> + </footer> + </main> + + </body> + +</html> + |