about summary refs log tree commit diff homepage
path: root/utils.jl
diff options
context:
space:
mode:
Diffstat (limited to 'utils.jl')
-rw-r--r--utils.jl6
1 files changed, 3 insertions, 3 deletions
diff --git a/utils.jl b/utils.jl
index 9c12c25..f1cba1d 100644
--- a/utils.jl
+++ b/utils.jl
@@ -23,17 +23,17 @@ function render_comments(template)
 end
 
 hfun_comments_rendered() = render_comments("comment.html")
+hfun_comment_rss_feed_url() = joinpath(dirname(locvar(:fd_full_url)),
+                                       "comments.xml")
 
 function hfun_comment_rss()
   rpath = joinpath(dir_url(), "comments.xml")
   open(joinpath(path(:site), rpath), "w") do feed
     write(feed, convert_html(readchomp(joinpath(path(:rss), "comments.xml"))))
   end
-  joinpath(globvar(:website_url), rpath)
+  hfun_comment_rss_feed_url()
 end
 
-hfun_comment_rss_feed_url() = joinpath(dirname(locvar(:fd_full_url)),
-                                       "comments.xml")
 hfun_comment_rss_items() = render_comments("comment.xml")
 
 function hfun_fediring(args)