diff options
author | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2022-01-09 21:47:22 +0700 |
---|---|---|
committer | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2022-01-09 21:47:22 +0700 |
commit | 9fd639eff5e47e8e15776f1974f0fcb9337b12f6 (patch) | |
tree | 908b0f776a2b6cccf6ff8ef3a6643d7a7d3cc39f /utils.jl | |
parent | cb35d1b5811aac349fd4d09bc3c0d666bd7ebeae (diff) | |
download | site-9fd639eff5e47e8e15776f1974f0fcb9337b12f6.tar.gz |
Offically introduce commenting
Diffstat (limited to 'utils.jl')
-rw-r--r-- | utils.jl | 6 |
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) |