summaryrefslogtreecommitdiffhomepage
path: root/web/layouts/list.html
diff options
context:
space:
mode:
authorSean Kurtz <seankurtz75@gmail.com>2026-11-25 01:02:03 -0600
committerSean Kurtz <seankurtz75@gmail.com>2026-11-25 01:02:03 -0600
commit392381b2de8bce919735fce753b3740747f2b2fa (patch)
tree34aa3101df173cb647f9fab6d922186b86df8f0a /web/layouts/list.html
parentc7f23b8a5fb86f8df51809aca64415bcadcaa9f6 (diff)
downloadzash-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/list.html')
-rw-r--r--web/layouts/list.html27
1 files changed, 27 insertions, 0 deletions
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 }}