]> git.plutz.net Git - shellwiki/commitdiff
modified path collection for css pragma
authorPaul Hänsch <paul@plutz.net>
Tue, 31 May 2022 12:33:53 +0000 (14:33 +0200)
committerPaul Hänsch <paul@plutz.net>
Tue, 31 May 2022 12:33:53 +0000 (14:33 +0200)
css.sh
themes/default.sh

diff --git a/css.sh b/css.sh
index 97c03ac9a5a16d25373c39a5e549142a81cac655..f640905e8b191a463c77ccb7b82750fd60076940 100755 (executable)
--- a/css.sh
+++ b/css.sh
@@ -32,7 +32,7 @@ css(){
       p; n; s;\r$;;;
       /^(%[ \t]+|%css[ \t]+|[ \t]+)[^ \t\r]+$/bCSS;
       /^(%[ \t]*|%css[ \t]*)$/bCSS;
-    ' <"$pagefile")${css}"
+    ' <"$pagefile")${BR}${css}"
   done
 
   printf %s\\n "${css}"
index f9dfe4189963c55bcb283c1d78ae74f1d4f7d12c..09e12f2e34f146c3274afc0bce34b1c811a0c7a9 100755 (executable)
@@ -9,7 +9,7 @@ theme_head(){
   '
   for css in "$_BASE/[.]/cgilite/common.css" "$_BASE/[.]/themes/default.css" $PAGE_CSS; do
     printf  '<link rel="stylesheet" type="text/css" href="%s">' \
-            "$(HTML "${css#/}")"
+            "$(HTML "${css##*//}")"
   done
 }