]> git.plutz.net Git - shellwiki/blobdiff - themes/default.sh
include charset in html headers
[shellwiki] / themes / default.sh
index 033dd7f7a270d14d8f88774fde0ad9737a8a40cf..d13e849f72ece086e4fb9a456f2fbe2419ea5f3d 100755 (executable)
@@ -19,6 +19,7 @@
 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
@@ -142,7 +143,7 @@ theme_search(){
        <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