-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html.pm
More file actions
32 lines (27 loc) · 968 Bytes
/
Copy pathindex.html.pm
File metadata and controls
32 lines (27 loc) · 968 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#lang pollen
◊(require pollen/pagetree
pollen/template
"helpers-template.rkt")
◊(define-meta title "سرورق")
◊(define-meta template "template-index.html")
◊(let () (current-pagetree (get-pagetree "index.ptree")) "")
◊(define (make-toc-li pagenode [show-children? #f])
(define node-children (children pagenode))
◊li{
◊h3{◊(node->link pagenode)}
◊(if (and node-children show-children?)
(apply ul (map (compose1 li node->link) node-children))
"")})
◊(apply ul #:class "toc-index"
(map
(lambda (x) (apply make-toc-li x))
'((سخن-ہائے-گفتنی.html)
(دیباچہ.html)
(اتحاد-عمل.html)
(اس-ویب-کتاب-کے-بارے-میں.html)
(دیوان/index.html #t)
(ضمیمہ-اول/index.html)
(ضمیمہ-دوم/index.html)
(ضمیمہ-سوم/index.html #t)
(ضمیمہ-چہارم/index.html)
(کتابیات.html))))