]> git.plutz.net Git - shellwiki/commitdiff
avoid [bracket] characters in links to satisfy W3C Validator
authorPaul Hänsch <paul@plutz.net>
Thu, 18 May 2023 11:05:18 +0000 (13:05 +0200)
committerPaul Hänsch <paul@plutz.net>
Thu, 18 May 2023 11:05:18 +0000 (13:05 +0200)
themes/default.sh

index e8b5f2f62802d53bfddc51f3e0dbc215a12a2df7..7c31003a1798a227f66ef384358084265c229925 100755 (executable)
@@ -5,9 +5,9 @@
 theme_head(){
   local IFS="$BR"
   printf '
-  <meta name="viewport" content="width=device-width"/>
+  <meta name="viewport" content="width=device-width">
   '
-  for css in "$_BASE/[.]/cgilite/common.css" "$_BASE/[.]/themes/default.css" $PAGE_CSS; do
+  for css in "$_BASE/%5B.%5D/cgilite/common.css" "$_BASE/%5B.%5D/themes/default.css" $PAGE_CSS; do
     printf  '<link rel="stylesheet" type="text/css" href="%s">' \
             "$(HTML "${css##*//}")"
   done
@@ -27,13 +27,13 @@ theme_pagemenu(){
   if acl_write "$page"; then
     printf  '
     <ul class="pagemenu">
-      <li><a href="./[view]">View</a></li>
-      <li><a href="./[edit]">Edit</a></li>
-      <li><a href="./[attachment]">Attachments</a></li>
-      <li><a href="./[revision]">Revisions</a></li>
-      <li><a href="./[rename]">Rename</a></li>
-      <li><a href="./[move]">Move</a></li>
-      <li><a href="./[delete]">Delete</a></li>
+      <li><a href="./%%5Bview%%5D">View</a></li>
+      <li><a href="./%%5Bedit%%5D">Edit</a></li>
+      <li><a href="./%%5Battachment%%5D">Attachments</a></li>
+      <li><a href="./%%5Brevision%%5D">Revisions</a></li>
+      <li><a href="./%%5Brename%%5D">Rename</a></li>
+      <li><a href="./%%5Bmove%%5D">Move</a></li>
+      <li><a href="./%%5Bdelete%%5D">Delete</a></li>
     </ul>'
   fi
 }