diff options
| author | IwanIDev <iwan@iwani.dev> | 2026-03-21 15:50:35 +0000 |
|---|---|---|
| committer | IwanIDev <iwan@iwani.dev> | 2026-03-21 15:50:35 +0000 |
| commit | 76da48766c562c43a65db4e25030ea3acb16d34c (patch) | |
| tree | dff686cc20b536e0aef90485648e676e23035430 /openring | |
| parent | 42ca90ee1f0aadaa09888f1c9627657abcd866b2 (diff) | |
feat: integrate Openring for webring section and update related files
Diffstat (limited to 'openring')
| -rw-r--r-- | openring/feeds.txt | 3 | ||||
| -rw-r--r-- | openring/out.html | 4 | ||||
| -rw-r--r-- | openring/template.html | 24 |
3 files changed, 31 insertions, 0 deletions
diff --git a/openring/feeds.txt b/openring/feeds.txt new file mode 100644 index 0000000..40a9bf6 --- /dev/null +++ b/openring/feeds.txt @@ -0,0 +1,3 @@ +https://drewdevault.com/feed.xml +https://emersion.fr/blog/rss.xml +https://danluu.com/atom.xml diff --git a/openring/out.html b/openring/out.html new file mode 100644 index 0000000..df17628 --- /dev/null +++ b/openring/out.html @@ -0,0 +1,4 @@ +<section class="space-y-2"> + <h2 class="text-2xl font-bold">Around the web</h2> + <p class="text-sm text-muted-foreground">Install <code>openring</code> and run <code>bun run openring:generate</code> to render this section.</p> +</section> 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> |
