about summary refs log tree commit diff homepage
path: root/_templates
diff options
context:
space:
mode:
authorNguyễn Gia Phong <mcsinyx@disroot.org>2021-12-20 23:42:32 +0700
committerNguyễn Gia Phong <mcsinyx@disroot.org>2021-12-21 12:41:36 +0700
commit3fae5dd37c658eb185fec2ad99dd11cacf97b7bb (patch)
tree80e44fb2a0f7e5f62f7dd2db7d15cce144618398 /_templates
parent822a8410c29cf37be4ff5f288e9292db9b873497 (diff)
downloadsite-3fae5dd37c658eb185fec2ad99dd11cacf97b7bb.tar.gz
Add openring
Diffstat (limited to '_templates')
-rw-r--r--_templates/formbox.xml10
-rw-r--r--_templates/openring.html12
2 files changed, 22 insertions, 0 deletions
diff --git a/_templates/formbox.xml b/_templates/formbox.xml
new file mode 100644
index 0000000..2078071
--- /dev/null
+++ b/_templates/formbox.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/_templates/openring.html b/_templates/openring.html
new file mode 100644
index 0000000..a585f17
--- /dev/null
+++ b/_templates/openring.html
@@ -0,0 +1,12 @@
+<section class=openring>
+  {{range .Articles}}
+  <div class=article>
+    <h3 class=title><a href='{{.Link}}'>{{.Title}}</a></h3>
+    {{.Summary}}<br>
+    <small class=right>&mdash;<a href='{{.SourceLink}}'>{{.SourceTitle}}</a>,
+      {{.Date | datef "2006-01-02"}}</small>
+  </div>
+  {{end}}
+</section>
+<small class=right>Generated by
+  <a href=https://git.sr.ht/~sircmpwn/openring>openring</a></small>