about summary refs log tree commit diff homepage
diff options
context:
space:
mode:
authorNguyễn Gia Phong <mcsinyx@disroot.org>2021-12-20 17:49:31 +0700
committerNguyễn Gia Phong <mcsinyx@disroot.org>2021-12-20 17:49:31 +0700
commit822a8410c29cf37be4ff5f288e9292db9b873497 (patch)
treed45a6577f3e053a4834d50ae27afb5feb2236fce
parent09f668df44432da378da7b251ea4bd4a011d62c6 (diff)
downloadsite-822a8410c29cf37be4ff5f288e9292db9b873497.tar.gz
Fix mistakenly staged changes
-rw-r--r--_rss/comment-head.xml10
-rw-r--r--_rss/comment-item.xml10
-rw-r--r--config.md1
-rw-r--r--utils.jl2
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)