summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2016-04-08 15:31:06 -0500
committerDavid Thompson <dthompson2@worcester.edu>2016-04-12 17:19:24 -0400
commit643b81ebbba880f834cd619a8a56304b938673ce (patch)
tree76c7787296b7b66cce95906de15ff5981f29bbb2
parented1602dc36444bcf1023926854a2cb01b5199e7e (diff)
builder: Reverse prefix and slash append order in generating post paths.
* haunt/builder/blog.scm (ugly-default-collection-template): * haunt/builder/blog.scm (post->atom-entry): Reverse appending of prefix and slash in generation of paths for blog entries.
-rw-r--r--haunt/builder/atom.scm2
-rw-r--r--haunt/builder/blog.scm2
2 files changed, 2 insertions, 2 deletions
diff --git a/haunt/builder/atom.scm b/haunt/builder/atom.scm
index 84f112c..9abe33d 100644
--- a/haunt/builder/atom.scm
+++ b/haunt/builder/atom.scm
@@ -54,7 +54,7 @@
,(let ((email (post-ref post 'email)))
(if email `(email ,email) '())))
(updated ,(date->string* (post-date post)))
- (link (@ (href ,(string-append "/" blog-prefix
+ (link (@ (href ,(string-append blog-prefix "/"
(site-post-slug site post) ".html"))
(rel "alternate")))
(summary (@ (type "html"))
diff --git a/haunt/builder/blog.scm b/haunt/builder/blog.scm
index 7a9d661..2830881 100644
--- a/haunt/builder/blog.scm
+++ b/haunt/builder/blog.scm
@@ -71,7 +71,7 @@
(define (ugly-default-collection-template site title posts prefix)
(define (post-uri post)
- (string-append "/" (or prefix "")
+ (string-append (or prefix "") "/"
(site-post-slug site post) ".html"))
`((h3 ,title)