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