From 822a8410c29cf37be4ff5f288e9292db9b873497 Mon Sep 17 00:00:00 2001 From: Nguyễn Gia Phong Date: Mon, 20 Dec 2021 17:49:31 +0700 Subject: Fix mistakenly staged changes --- _rss/comment-head.xml | 10 ++++++++++ _rss/comment-item.xml | 10 ++++++++++ config.md | 1 - utils.jl | 2 +- 4 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 _rss/comment-head.xml create mode 100644 _rss/comment-item.xml diff --git a/_rss/comment-head.xml b/_rss/comment-head.xml new file mode 100644 index 0000000..be8fa6c --- /dev/null +++ b/_rss/comment-head.xml @@ -0,0 +1,10 @@ + + + +Comments on {{fd2rss rss_title}} +{{fd_full_url}} + +Formbox diff --git a/_rss/comment-item.xml b/_rss/comment-item.xml new file mode 100644 index 0000000..2078071 --- /dev/null +++ b/_rss/comment-item.xml @@ -0,0 +1,10 @@ + + https://lists.sr.ht/~cnx/site/{message_id} + https://lists.sr.ht/~cnx/site/{message_id} + {date} + {author} + On {date}, {author} wrote: + {subject} + + +{children} diff --git a/config.md b/config.md index fbd8a06..c63251b 100644 --- a/config.md +++ b/config.md @@ -4,7 +4,6 @@ website_title = "Web logs by McSinyx" website_description = "Random write-ups packed with pop culture references" copyright = "🄯 2019–2021 " * author website_url = "https://cnx.srht.site" -website_url = "http://localhost:8000" date_format = "yyyy-mm-dd" mintoclevel = 2 generate_rss = true diff --git a/utils.jl b/utils.jl index 3e58dde..d05a254 100644 --- a/utils.jl +++ b/utils.jl @@ -21,7 +21,7 @@ function hfun_comment_rss() item_template = joinpath(path(:rss), "comment-item.xml") open(joinpath(path(:site), rpath), "w") do feed write(feed, convert_html(read(head_template, String))) - write(feed, read(`python3 formbox.py mbox $(message_id()) $(item_template)`, String)) + #write(feed, read(`python3 formbox.py mbox $(message_id()) $(item_template)`, String)) write(feed, "") end return joinpath(globvar(:website_url), rpath) -- cgit 1.4.1