Mercurial > hg > nginx-site
changeset 3037:c1d078b13527
Fixed dirindex and varindex for top level modules.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Thu, 01 Feb 2024 15:25:51 +0400 |
parents | 2ff222c4ff8a |
children | f0c2c0458f2b |
files | xsls/link.xsls |
diffstat | 1 files changed, 10 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/xsls/link.xsls Thu Feb 01 15:25:49 2024 +0400 +++ b/xsls/link.xsls Thu Feb 01 15:25:51 2024 +0400 @@ -50,7 +50,11 @@ <a href="{substring-before(@doc, '.xml')}.html#{@id}">!{@id}</a> X:if "count(../link[@id = current()/@id]) > 1" { X:text{ (} - !{substring-before(substring-after(@doc, '/'), '.xml')} + X:if "contains(@doc, '/')" { + !{substring-before(substring-after(@doc, '/'), '.xml')} + } else { + !{substring-before(@doc, '.xml')} + } X:text{)} } <br/> @@ -62,7 +66,11 @@ <a href="{substring-before(@doc, '.xml')}.html#{@id}">!!;</a> X:if "count(../link[@id = current()/@id and @doc != current()/@doc]) > 0" { X:text{ (} - !{substring-before(substring-after(@doc, '/'), '.xml')} + X:if "contains(@doc, '/')" { + !{substring-before(substring-after(@doc, '/'), '.xml')} + } else { + !{substring-before(@doc, '.xml')} + } X:text{)} } <br/>