#!/bin/sh
-# Copyright 2022 - 2023 Paul Hänsch
+# Copyright 2022 - 2024 Paul Hänsch
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
theme_head(){
local IFS="$BR"
printf '
+ <meta charset="utf-8">
<meta name="viewport" content="width=device-width">
'
for css in "$_BASE/%5B.%5D/cgilite/common.css" "$_BASE/%5B.%5D/themes/default.css" $PAGE_CSS; do
<article>
<h1>$([ "$words" ] && _ "Search results" || _ "Search" )</h1>
<form class="search" method="GET">
- <input type="search" name="q" value="$(HTML $words)"><button class="search" type="submit">$(_ Search)</button>
+ <input type="search" name="q" value="$(GET q |HTML)"><button class="search" type="submit">$(_ Search)</button>
</form>
<ol class="searchresults">
$(while read -r p t; do