add up nav link
This commit is contained in:
parent
44878e8510
commit
2f928b88dd
|
@ -164,10 +164,14 @@
|
||||||
name
|
name
|
||||||
`(li () (a ([href ,link])
|
`(li () (a ([href ,link])
|
||||||
,(if (equal? p exploded) `(strong () ,name) name))))))
|
,(if (equal? p exploded) `(strong () ,name) name))))))
|
||||||
|
(define parent-name (simplify-path (build-path xref-name 'up) #f))
|
||||||
|
|
||||||
(define site-toc
|
(define site-toc
|
||||||
(apply list 'ol '()
|
`(ol ()
|
||||||
(for/list ([def (in-list (sort site-toc-defs string<? #:key first))])
|
,@(if (equal? (build-path "/") xref-name)
|
||||||
|
'()
|
||||||
|
`((li () (a ([href ,(format "~a~a" base-url (path->string parent-name))]) "<up>"))))
|
||||||
|
,@(for/list ([def (in-list (sort site-toc-defs string<? #:key first))])
|
||||||
(second def))))
|
(second def))))
|
||||||
|
|
||||||
(let ([content (lower-specials content base-url)])
|
(let ([content (lower-specials content base-url)])
|
||||||
|
|
Loading…
Reference in New Issue