From 9fd639eff5e47e8e15776f1974f0fcb9337b12f6 Mon Sep 17 00:00:00 2001 From: Nguyễn Gia Phong Date: Sun, 9 Jan 2022 21:47:22 +0700 Subject: Offically introduce commenting --- utils.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'utils.jl') 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) -- cgit 1.4.1