about summary refs log tree commit diff homepage
path: root/_libs
diff options
context:
space:
mode:
authorNguyễn Gia Phong <mcsinyx@disroot.org>2021-12-22 17:36:16 +0700
committerNguyễn Gia Phong <mcsinyx@disroot.org>2021-12-22 17:36:16 +0700
commitee131010bc85332db483ae2e770495f29c168773 (patch)
tree96cadc3da23bd464feebf58e26f1f650399a2ffa /_libs
parent3fae5dd37c658eb185fec2ad99dd11cacf97b7bb (diff)
downloadsite-ee131010bc85332db483ae2e770495f29c168773.tar.gz
Outsource more to injection phase
Diffstat (limited to '_libs')
-rw-r--r--_libs/formbox/comment.xml10
-rw-r--r--_libs/openring/in.html13
-rw-r--r--_libs/openring/sources8
3 files changed, 31 insertions, 0 deletions
diff --git a/_libs/formbox/comment.xml b/_libs/formbox/comment.xml
new file mode 100644
index 0000000..2078071
--- /dev/null
+++ b/_libs/formbox/comment.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/_libs/openring/in.html b/_libs/openring/in.html
new file mode 100644
index 0000000..7a164cc
--- /dev/null
+++ b/_libs/openring/in.html
@@ -0,0 +1,13 @@
+<h2>See Also</h2>
+<div class=openring>
+  {{range .Articles}}
+  <article>
+    <h3><a href='{{.Link}}'>{{.Title}}</a></h3>
+    {{.Summary}}
+    <small class=right>&mdash;<a href='{{.SourceLink}}'>{{.SourceTitle}}</a>,
+      {{.Date | datef "2006-01-02"}}</small>
+  </article>
+  {{end}}
+</div>
+<small class=right>Generated by
+  <a href=https://sr.ht/~sircmpwn/openring>openring</a></small><br>
diff --git a/_libs/openring/sources b/_libs/openring/sources
new file mode 100644
index 0000000..9514efa
--- /dev/null
+++ b/_libs/openring/sources
@@ -0,0 +1,8 @@
+https://blog.ganssle.io/feeds/all.atom.xml
+https://codesections.com/rss.xml
+https://danct12.github.io/feed.xml
+https://drewdevault.com/feed.xml
+https://huyngo.envs.net/index.xml
+https://pgjones.dev/blog/rss20.xml
+https://stallman.org/rss/rss.xml
+https://unixsheikh.com/feed.rss