summaryrefslogtreecommitdiff
path: root/openring/template.html
diff options
context:
space:
mode:
authorIwanIDev <iwan@iwani.dev>2026-03-21 15:50:35 +0000
committerIwanIDev <iwan@iwani.dev>2026-03-21 15:50:35 +0000
commit76da48766c562c43a65db4e25030ea3acb16d34c (patch)
treedff686cc20b536e0aef90485648e676e23035430 /openring/template.html
parent42ca90ee1f0aadaa09888f1c9627657abcd866b2 (diff)
feat: integrate Openring for webring section and update related files
Diffstat (limited to 'openring/template.html')
-rw-r--r--openring/template.html24
1 files changed, 24 insertions, 0 deletions
diff --git a/openring/template.html b/openring/template.html
new file mode 100644
index 0000000..86ead2c
--- /dev/null
+++ b/openring/template.html
@@ -0,0 +1,24 @@
+<section class="space-y-4">
+ <h2 class="text-2xl font-bold">Around the web</h2>
+ <p class="text-sm text-muted-foreground">Recent posts from sites I follow.</p>
+
+ <div class="space-y-3">
+ {{range .Articles}}
+ <article class="rounded-lg border bg-card text-card-foreground p-4">
+ <h3 class="text-base font-semibold leading-tight">
+ <a href="{{.Link}}" target="_blank" rel="noopener noreferrer" class="hover:underline">{{.Title}}</a>
+ </h3>
+ <p class="mt-2 text-sm text-muted-foreground">{{.Summary}}</p>
+ <p class="mt-3 text-xs text-muted-foreground">
+ <span>via <a href="{{.SourceLink}}" target="_blank" rel="noopener noreferrer" class="hover:underline">{{.SourceTitle}}</a></span>
+ <span class="mx-1">-</span>
+ <time datetime="{{.Date | datef "2006-01-02"}}">{{.Date | datef "Jan 2, 2006"}}</time>
+ </p>
+ </article>
+ {{end}}
+ </div>
+
+ <p class="text-xs text-muted-foreground">
+ Generated by <a href="https://git.sr.ht/~sircmpwn/openring" class="hover:underline">openring</a>
+ </p>
+</section>