diff options
Diffstat (limited to 'openring/template.html')
| -rw-r--r-- | openring/template.html | 24 |
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> |
