website/assets/templates/openring-input.html
2020-11-07 08:05:32 +08:00

47 lines
1.1 KiB
HTML

<hr/>
<section class="webring">
<h3>Posts from other blogs I follow</h3>
<section class="articles">
{{range .Articles}}
<div class="webring__article">
<p class="webring__title">
<a href="{{.Link}}" target="_blank" rel="noopener">{{.Title}}</a>
</p>
<span class="webring__metadata">
<small class="webring__source">
via <a href="{{.SourceLink}}">{{.SourceTitle}}</a>
</small>
{{- if ne (datef "2006-01-02" .Date) "0001-01-01" }}
<small class="webring__date">- <date datetime="{{ .Date }}">{{.Date | datef "2006-01-02"}}</date></small>
{{- end }}
</span>
</div>
{{end}}
</section>
<p class="webring__attribution">
Generated by
<a href="https://git.sr.ht/~sircmpwn/openring">openring</a>
</p>
</section>
<style>
.webring .articles {
margin: -0.5rem;
}
.webring__title {
margin: 0;
}
.webring__article {
margin: 0.5rem;
padding: 0.5rem;
background: var(--base01);
}
.webring__attribution {
text-align: right;
font-size: 0.8rem;
color: var(--base03);
}
</style>