diff options
| author | Sean Kurtz <seankurtz75@gmail.com> | 2026-11-25 01:02:03 -0600 |
|---|---|---|
| committer | Sean Kurtz <seankurtz75@gmail.com> | 2026-11-25 01:02:03 -0600 |
| commit | 392381b2de8bce919735fce753b3740747f2b2fa (patch) | |
| tree | 34aa3101df173cb647f9fab6d922186b86df8f0a /web/layouts | |
| parent | c7f23b8a5fb86f8df51809aca64415bcadcaa9f6 (diff) | |
| download | zash-feat/web-site.tar.gz | |
web: a Hugo site for zashfeat/web-site
A site in web/, built with Hugo and no theme module, so it builds offline
from one Go binary:
hugo server --source web preview on localhost:1313
hugo --source web --minify -> web/public, which is ignored
Pages: a home page with the shell's pitch, a terminal card, the four
properties that define it and a short benchmark table, plus three docs
pages (building, development, status) in a section with a sidebar. The
palette comes from packaging/zash-logo.svg: mainframe navy, periwinkle, a
signal blue. Dark only, monospace where a shell would be monospaced.
Highlighting uses classes (`markup.highlight.noClasses = false`) against
assets/css/chroma.css generated with `hugo gen chromastyles --style=
tokyonight-night`, so code sits in the page instead of a monokai box.
site.css and copy.js go through Hugo's minify+fingerprint pipeline.
Two .gitignore fixes this needed: `docs/` matched web/content/docs/ (the
generated Doxygen output is at the root, so it is `/docs/` now), and
Hugo's .hugo_build.lock is ignored.
Not published yet: zash is private and Pages is not available for a
private repository on a free plan, so web/README.md records the options.
Diffstat (limited to 'web/layouts')
| -rw-r--r-- | web/layouts/404.html | 7 | ||||
| -rw-r--r-- | web/layouts/baseof.html | 46 | ||||
| -rw-r--r-- | web/layouts/home.html | 41 | ||||
| -rw-r--r-- | web/layouts/list.html | 27 | ||||
| -rw-r--r-- | web/layouts/partials/docs-nav.html | 16 | ||||
| -rw-r--r-- | web/layouts/partials/head.html | 26 | ||||
| -rw-r--r-- | web/layouts/single.html | 23 |
7 files changed, 186 insertions, 0 deletions
diff --git a/web/layouts/404.html b/web/layouts/404.html new file mode 100644 index 0000000..8fa61b3 --- /dev/null +++ b/web/layouts/404.html @@ -0,0 +1,7 @@ +{{ define "main" }} +<div class="notfound"> + <h1>404</h1> + <p class="lede">No such command.</p> + <p><a href="{{ "/" | relURL }}">Back to the shell</a></p> +</div> +{{ end }} diff --git a/web/layouts/baseof.html b/web/layouts/baseof.html new file mode 100644 index 0000000..551753b --- /dev/null +++ b/web/layouts/baseof.html @@ -0,0 +1,46 @@ +<!doctype html> +<html lang="{{ site.Language.Locale }}"> +<head> + {{ partial "head.html" . }} +</head> +<body> + <a class="skip" href="#main">Skip to content</a> + + <header class="site"> + <div class="bar"> + <a class="brand" href="{{ "/" | relURL }}"> + <img src="{{ "zash-logo.svg" | relURL }}" alt="" width="30" height="30"> + <span>zash</span> + </a> + <nav> + {{ range site.Menus.main }} + {{ $current := eq .URL $.RelPermalink }} + <a href="{{ .URL }}"{{ if $current }} aria-current="page"{{ end }}>{{ .Name }}</a> + {{ end }} + </nav> + </div> + </header> + + <main id="main"> + {{ block "main" . }}{{ end }} + </main> + + <footer class="site"> + <div class="cols"> + <p> + zash · MIT OR Apache-2.0 OR BSD-2-Clause, at your option + </p> + <p> + <a href="{{ site.Params.repo }}">Source</a> · + <a href="{{ site.Params.repo }}/issues">Issues</a> · + <a href="{{ site.Params.repo }}/blob/main/DESIGN.md">Design notes</a> + </p> + </div> + </footer> + + {{- with resources.Get "js/copy.js" }} + {{- $js := . | minify | fingerprint }} + <script src="{{ $js.RelPermalink }}" integrity="{{ $js.Data.Integrity }}" defer></script> + {{- end }} +</body> +</html> diff --git a/web/layouts/home.html b/web/layouts/home.html new file mode 100644 index 0000000..13fda77 --- /dev/null +++ b/web/layouts/home.html @@ -0,0 +1,41 @@ +{{ define "main" }} +<section class="hero"> + <div> + <h1><span class="prompt">$</span> zash</h1> + <p class="lede"> + A small, fast POSIX shell for z/OS UNIX System Services, in the Almquist + (ash) tradition. Written from scratch in C23, built with Clang and IBM + Open XL. + </p> + <div class="actions"> + <a class="btn primary" href="{{ "docs/install/" | relURL }}">Get started</a> + <a class="btn" href="{{ site.Params.repo }}">GitHub</a> + </div> + <div class="badges"> + <span>C23</span> + <span>spawn(), not fork()</span> + <span>ASCII or EBCDIC</span> + <span>POSIX sh</span> + </div> + </div> + + <div class="term"> + <div class="term-bar"> + <span class="dot"></span><span class="dot"></span><span class="dot"></span> + <span class="title">zash</span> + </div> + <pre><code><span class="cmd">./zash -c 'for i in 1 2 3; do print $i; done'</span> +<span class="out">1 +2 +3</span> +<span class="cmd">make bench</span> +<span class="out">render 100 configs</span> <span class="ok">zash 0.38</span> <span class="out">bash 0.53</span> +<span class="cmd">echo $((6 * 7))</span> +42<span class="cursor"></span></code></pre> + </div> +</section> + +<article> + {{ .Content }} +</article> +{{ end }} diff --git a/web/layouts/list.html b/web/layouts/list.html new file mode 100644 index 0000000..eccd90b --- /dev/null +++ b/web/layouts/list.html @@ -0,0 +1,27 @@ +{{ define "main" }} +{{ if eq .Section "docs" }} +<div class="docs"> + {{ partial "docs-nav.html" . }} + <article> + <div class="docs-head"> + <p class="kicker">docs</p> + <h1>{{ .Title }}</h1> + {{ with .Content }}{{ . }}{{ end }} + </div> + <ul class="pages"> + {{ range .Pages.ByWeight }} + <li> + <a href="{{ .RelPermalink }}">{{ .Title }}</a> + {{ with .Description }}<span class="summary">{{ . }}</span>{{ end }} + </li> + {{ end }} + </ul> + </article> +</div> +{{ else }} +<article> + <h1>{{ .Title }}</h1> + {{ .Content }} +</article> +{{ end }} +{{ end }} diff --git a/web/layouts/partials/docs-nav.html b/web/layouts/partials/docs-nav.html new file mode 100644 index 0000000..213a1eb --- /dev/null +++ b/web/layouts/partials/docs-nav.html @@ -0,0 +1,16 @@ +{{ with site.GetPage "/docs" }} +<aside> + <div class="group"> + <h2>Docs</h2> + {{ range .Pages.ByWeight }} + <a href="{{ .RelPermalink }}"{{ if eq .RelPermalink $.RelPermalink }} aria-current="page"{{ end }}>{{ .Title }}</a> + {{ end }} + </div> + <div class="group"> + <h2>Source</h2> + <a href="{{ site.Params.repo }}/blob/main/README.md">README</a> + <a href="{{ site.Params.repo }}/blob/main/DESIGN.md">DESIGN.md</a> + <a href="{{ site.Params.repo }}/blob/main/formal/zash-spec.pdf">Specification (PDF)</a> + </div> +</aside> +{{ end }} diff --git a/web/layouts/partials/head.html b/web/layouts/partials/head.html new file mode 100644 index 0000000..e145475 --- /dev/null +++ b/web/layouts/partials/head.html @@ -0,0 +1,26 @@ +{{- $desc := or .Description site.Params.description -}} +<meta charset="utf-8"> +<meta name="viewport" content="width=device-width, initial-scale=1"> +<meta name="theme-color" content="#0b0e17"> +<meta name="color-scheme" content="dark"> +<title>{{ if .IsHome }}{{ site.Title }} · a POSIX shell for z/OS UNIX{{ else }}{{ .Title }} · {{ site.Title }}{{ end }}</title> +<meta name="description" content="{{ $desc }}"> +<link rel="canonical" href="{{ .Permalink }}"> + +<meta property="og:site_name" content="{{ site.Title }}"> +<meta property="og:title" content="{{ if .IsHome }}{{ site.Title }}{{ else }}{{ .Title }}{{ end }}"> +<meta property="og:description" content="{{ $desc }}"> +<meta property="og:type" content="{{ if .IsPage }}article{{ else }}website{{ end }}"> +<meta property="og:url" content="{{ .Permalink }}"> +<meta property="og:image" content="{{ "zash-logo.svg" | absURL }}"> +<meta name="twitter:card" content="summary"> + +<link rel="icon" href="{{ "zash-logo.svg" | relURL }}" type="image/svg+xml"> +{{- with resources.Get "css/zash.css" }} + {{- $css := . | minify | fingerprint }} +<link rel="stylesheet" href="{{ $css.RelPermalink }}" integrity="{{ $css.Data.Integrity }}"> +{{- end }} +{{- with resources.Get "css/chroma.css" }} + {{- $chroma := . | minify | fingerprint }} +<link rel="stylesheet" href="{{ $chroma.RelPermalink }}" integrity="{{ $chroma.Data.Integrity }}"> +{{- end }} diff --git a/web/layouts/single.html b/web/layouts/single.html new file mode 100644 index 0000000..8171148 --- /dev/null +++ b/web/layouts/single.html @@ -0,0 +1,23 @@ +{{ define "main" }} +{{ if eq .Section "docs" }} +<div class="docs"> + {{ partial "docs-nav.html" . }} + <article> + <div class="docs-head"> + <p class="kicker">docs</p> + <h1>{{ .Title }}</h1> + {{ with .Description }}<p class="lede">{{ . }}</p>{{ end }} + </div> + {{ .Content }} + <p class="edit"> + <a href="{{ site.Params.repo }}/edit/main/web/content/{{ .File.Path }}">Edit this page</a> + </p> + </article> +</div> +{{ else }} +<article> + <h1>{{ .Title }}</h1> + {{ .Content }} +</article> +{{ end }} +{{ end }} |
