Changeset 635
- Timestamp:
- 10/23/07 11:57:47 (6 years ago)
- Files:
-
- 1 modified
-
lang/shellscript/blosxom.zsh/blosxom.zsh (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/shellscript/blosxom.zsh/blosxom.zsh
r631 r635 12 12 echo "Content-Type: text/html" 13 13 echo 14 15 typeset -a pathinfo 16 : ${(A)pathinfo::=${(s:/:)PATH_INFO}} 17 18 flavour=${(M)pathinfo[$#pathinfo-1]%.*} 19 if [[ $flavour == "" ]]; then 20 flavour=".html" 21 fi 14 22 15 23 function template () { … … 27 35 } 28 36 29 template "head .html" title ${(qq)title} home ${(qq)SCRIPT_NAME}37 template "head$flavour" title ${(qq)title} home ${(qq)SCRIPT_NAME} 30 38 31 39 typeset -a entries … … 58 66 done 59 67 60 typeset -a pathinfo61 : ${(A)pathinfo::=${(s:/:)PATH_INFO}}62 63 68 if [[ $#pathinfo > 0 && "$PATH_INFO" != "" ]]; then 69 pathinfo[$#pathinfo-1] = ${pathinfo[$#pathinfo-1]%.*} 70 if [[ pathinfo[$#pathinfo-1] == "index" ]]; then 71 pathinfo[$#pathinfo-1] = 72 fi 64 73 for ((i = 1; i < $#entries; i += 1)); do 65 74 typeset -A entry … … 75 84 : ${(AA)entry::=${(z)entries[$i]}} 76 85 if [[ $entry[path] != "0" ]]; then 77 template "story .html" ${(kv)entry}86 template "story$flavour" ${(kv)entry} 78 87 fi 79 88 done 80 89 81 version=`zsh --version` 82 template "foot.html" version ${(qq)version} 90 template "foot$flavour" version ${(qq)ZSH_VERSION} 83 91
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)