]> git.plutz.net Git - shellwiki/blobdiff - themes/default.sh
Merge commit '6bc502434737d7f08379e79b94fc6fda424ef779'
[shellwiki] / themes / default.sh
index 5b2f1edd55a261ec566e37820c122af0d8a08313..5ebbd0ef6964180a146ea96b10ddf5a2ee5658ec 100755 (executable)
@@ -1,6 +1,6 @@
 #!/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
@@ -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
@@ -134,25 +135,6 @@ theme_editor(){
 
 theme_revisions(){ theme_page "$@"; }
 
-theme_search(){
-  local words="$*"
-  # STDIN: read result pages line by line
-
-  theme_page - "$(_ Search results): ${words}" <<-EOF
-       <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>
-         </form>
-         <ol class="searchresults">
-           $( while read p; do
-             printf '<li><a href="%s">%s</a></li>' "$(URL "$p")" "$(HTML "$p")"
-           done)
-         </ol>
-       </article>
-       EOF
-}
-
 theme_attachments(){
   local page="$1"