about summary refs log tree commit diff homepage
path: root/utils.jl
diff options
context:
space:
mode:
authorNguyễn Gia Phong <mcsinyx@disroot.org>2022-01-09 21:47:22 +0700
committerNguyễn Gia Phong <mcsinyx@disroot.org>2022-01-09 21:47:22 +0700
commit9fd639eff5e47e8e15776f1974f0fcb9337b12f6 (patch)
tree908b0f776a2b6cccf6ff8ef3a6643d7a7d3cc39f /utils.jl
parentcb35d1b5811aac349fd4d09bc3c0d666bd7ebeae (diff)
downloadsite-9fd639eff5e47e8e15776f1974f0fcb9337b12f6.tar.gz
Offically introduce commenting
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)