fix href in tagged/tag post-preview in publish script
This commit is contained in:
parent
0e92c0c3b4
commit
068322b282
2 changed files with 3 additions and 3 deletions
|
@ -144,8 +144,8 @@
|
|||
[resources (make-weak-hash)]
|
||||
[posts (map (lambda (lookup/id)
|
||||
(if (hash-has-key? post-lookup lookup/id)
|
||||
(hash-ref post-lookup lookup/id)
|
||||
(get-post-data lookup/id resources post-lookup x)))
|
||||
(append (list lookup/id) (rest (hash-ref post-lookup lookup/id)))
|
||||
(append (list lookup/id) (rest (get-post-data lookup/id resources post-lookup x)))))
|
||||
(filter non-empty-string? (rest tag-table-row)))]
|
||||
[make-index (read (open-input-file "source/make-index.scm"))]
|
||||
[new-index ((eval make-index ns) (~a "tagged/" tag) posts)]
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
(h4 ,(second post))
|
||||
(p ,(third post))
|
||||
;; tagged posts will insert href instead of id
|
||||
(a ((href ,(first post)))
|
||||
(a ((href ,(~a "/" (first post))))
|
||||
,(~a "go! to " (second post) " page")))))
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue