diff options
-rw-r--r-- | _rss/comment-head.xml | 10 | ||||
-rw-r--r-- | _rss/comment-item.xml | 10 | ||||
-rw-r--r-- | config.md | 1 | ||||
-rw-r--r-- | utils.jl | 2 |
4 files changed, 21 insertions, 2 deletions
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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<rss version="2.0" + xmlns:atom="http://www.w3.org/2005/Atom" + xmlns:content="http://purl.org/rss/1.0/modules/content" + xmlns:dc="http://purl.org/dc/elements/1.1"> +<channel> +<title>Comments on {{fd2rss rss_title}}</title> +<link>{{fd_full_url}}</link> +<description></description> +<generator>Formbox</generator> 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 @@ +<item> + <link>https://lists.sr.ht/~cnx/site/{message_id}</link> + <guid>https://lists.sr.ht/~cnx/site/{message_id}</guid> + <pubDate>{date}</pubDate> + <dc:creator>{author}</dc:creator> + <title>On {date}, {author} wrote:</title> + <description>{subject}</description> + <content:encoded><![CDATA[{body}]]></content:encoded> +</item> +{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, "</channel></rss>") end return joinpath(globvar(:website_url), rpath) |