Files
w3cjandClaude Opus 5.5 c590167432 docs(site): a branding page, and right-click on the logo to reach it
/branding/ (content/branding.md, layouts/branding.html: Hextra's home
layout with the home page's look, out of the sidebar): the logo as
box-drawing text in a code block with Hextra's copy button; the logo as
pixel SVGs for dark and light backgrounds, with 4x PNGs
(static/branding/); the app icon as SVG and PNG at 64 to 1024, plus the
site's existing icons; the social card; the palette as click-to-copy
swatches (data/palette.yaml, hexes read from custom.css); the fonts with
samples and Departure Mono's license; usage notes; credits.

Shortcodes: brand-assets, brand-asset (fails the build on a missing
file, reads PNG sizes), palette, font-sample. custom.css: the page's
styles, the footer, and --devvm-accent-dark (#408000), the light logo's
prompt. custom/footer.html: a footer link to the page on every page, and
a contextmenu handler on the navbar logo that opens it.

Contributing > Writing docs describes the page, its shortcodes and how
to render its PNGs again.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-30 16:33:22 -07:00

19 lines
1.3 KiB
HTML

{{- /* A font on the branding page: its name, linked, a line of text in it, the Markdown inside, then, with a
license parameter (a path in docs/static/), a link to the license the site serves.
{{< font-sample name="Departure Mono" font="pixel" link="https://departuremono.com/" license="…" >}}…{{< /font-sample >}}
font is pixel, sans or mono: the site's CSS variable for it. */ -}}
{{- $fonts := dict "pixel" "var(--devvm-font-pixel)" "sans" "var(--hx-font-sans)" "mono" "var(--hx-font-mono)" -}}
{{- $font := index $fonts (.Get "font") -}}
{{- if not $font }}{{ errorf "font-sample: font is pixel, sans or mono (%s)" .Position }}{{ end -}}
<div class="devvm-font devvm-font-{{ .Get "font" }}">
<a class="devvm-font-name" href="{{ .Get "link" }}">{{ .Get "name" }}</a>
<p class="devvm-font-sample" style="font-family: {{ $font | safeCSS }}">One VM for every project</p>
{{ .Inner | .Page.RenderString (dict "display" "block") }}
{{- with .Get "license" }}
{{- if not (fileExists (printf "static/%s" .)) }}{{ errorf "font-sample: no docs/static/%s (%s)" . $.Position }}{{ end }}
<ul class="devvm-brand-files">
<li><a href="{{ . | relURL }}">{{ partial "icon.html" (dict "name" "open-book" "position" $.Position) }}License</a></li>
</ul>
{{- end }}
</div>