fix href in tagged/tag post-preview in publish script

This commit is contained in:
sorrel 2024-02-08 23:41:11 -05:00
parent 70b25cf2af
commit 88bef35a83
2 changed files with 3 additions and 3 deletions

View file

@ -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)]

View file

@ -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")))))