summaryrefslogtreecommitdiff
path: root/templates/openring.html
blob: 675c6234df726092312671527c09cd0aca41964c (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<section class="webring" style="margin-top: 128px;">
  <h2>Articles from blogs I read</h2>
  <section class="articles">
    {{range .Articles}}
    <div class="article">
      <h3 class="title">
        <a href="{{.Link}}" target="_blank" rel="noopener">{{.Title}}</a>
      </h3>
      <p class="summary">{{.Summary}}</p>
      <div class="source">
        via <a href="{{.SourceLink}}">{{.SourceTitle}}</a>
      </div>
      <div class="date">{{.Date | datef "January 2, 2006"}}</div>
    </div>
    {{end}}
  </section>
  <div class="attribution">
    <small>
    Generated by
    <a href="https://git.sr.ht/~sircmpwn/openring">openring</a>
    </small>
  </div>
</section>
<style>
.webring .articles {
  display: flex;
  flex-wrap: wrap;
  margin: -0.5rem;
}
.webring .title {
  margin: 0;
}
.webring .article {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  margin: 0.5rem;
  padding: 0.5rem;
  min-width: 10rem;
}
.webring .summary {
  flex: 1 1 0;
}
.webring .attribution {
  text-align: right;
}
</style>