Commits


allow to disable navbar/footer/image preview


more tweaks for the navigation - move the user home for last - adjust how "up" works - include the user name in the "home" link


tweak nav style and add some icons


add a navigation bar This adds a simple navigation bar since web browser are apparently dumbler than most Gemini browsers. The "Root" link points to the capsule' root, "Home" to the current home directory and "Up" to the parent directory. Users home are discovered using a simple heuristics: ~user path components.


semplifications; now NULL is allowed


include tmpl.h


set auto-focus for the server input request


fix url handling in tp_figure now we pass the correct url from proxy.c


tp_head/foot can be called with clt->clt_pc NULL; handle it it happens when there's an error or we don't have a match for the proxy.


fix crash if path is NULL


wrap preformatted in a figure and provide a caption too (if any)


style; parenthesize returns


workaround template compiler bug the '\0' check doesn't seem to be correctly translated


fix html generation a space is mandatory between the tag and the attribute, but the template compiler trims it out. Use {{ " " }} as a workaround.


fixup