X-Git-Url: https://git.plutz.net/?a=blobdiff_plain;f=themes%2Fdefault.sh;fp=themes%2Fdefault.sh;h=5ebbd0ef6964180a146ea96b10ddf5a2ee5658ec;hb=20c6ce6a3de621383d1b6d985757366590722005;hp=d13e849f72ece086e4fb9a456f2fbe2419ea5f3d;hpb=3260c24fcce2db7d0b0eb98234c5ba385c6f55a9;p=shellwiki diff --git a/themes/default.sh b/themes/default.sh index d13e849..5ebbd0e 100755 --- a/themes/default.sh +++ b/themes/default.sh @@ -135,31 +135,6 @@ theme_editor(){ theme_revisions(){ theme_page "$@"; } -theme_search(){ - local words="$*" - # STDIN: [STRING page][TAB][STRING teaser] - - theme_page - "$(_ Search results): ${words}" <<-EOF -
-

$([ "$words" ] && _ "Search results" || _ "Search" )

- -
    - $(while read -r p t; do - path="$(UNSTRING "$p")" pfrag="${path%/}" title='' - while [ "$pfrag" ]; do - title="$(page_title "$pfrag")/$title" - pfrag="${pfrag%/*}" - done - printf '
  1. %s

    %s

  2. ' \ - "$(URL "$path")" "$(HTML "/$title")" "$(UNSTRING "$t" |HTML)" - done) -
-
- EOF -} - theme_attachments(){ local page="$1"