summaryrefslogtreecommitdiff
path: root/openring/template.html
blob: 86ead2c862f5df7cfb606f3cb08f7cc6086b339f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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>