summaryrefslogtreecommitdiff
path: root/templates/openring.html
diff options
context:
space:
mode:
authoreug-vs <eugene@eug-vs.xyz>2022-04-21 21:46:43 +0300
committereug-vs <eugene@eug-vs.xyz>2022-04-21 21:46:49 +0300
commit9a38fed5f259db004e93746e432cd8cb7885e1ea (patch)
treeb63e9b5658a152923a763db779096705e28f2ce3 /templates/openring.html
parent98d85738e0eb7f21669f78420d5e3a457117de66 (diff)
downloadeug-vs-xyz-9a38fed5f259db004e93746e432cd8cb7885e1ea.tar.gz
fix: add missing components
Diffstat (limited to 'templates/openring.html')
-rw-r--r--templates/openring.html40
1 files changed, 32 insertions, 8 deletions
diff --git a/templates/openring.html b/templates/openring.html
index be91912..675c623 100644
--- a/templates/openring.html
+++ b/templates/openring.html
@@ -1,23 +1,47 @@
-<sectiong style="margin-top: 128px;">
+<section class="webring" style="margin-top: 128px;">
<h2>Articles from blogs I read</h2>
- <section>
+ <section class="articles">
{{range .Articles}}
- <div>
- <h3>
+ <div class="article">
+ <h3 class="title">
<a href="{{.Link}}" target="_blank" rel="noopener">{{.Title}}</a>
</h3>
- <p>{{.Summary}}</p>
- <div>
+ <p class="summary">{{.Summary}}</p>
+ <div class="source">
via <a href="{{.SourceLink}}">{{.SourceTitle}}</a>
</div>
- <div>{{.Date | datef "January 2, 2006"}}</div>
+ <div class="date">{{.Date | datef "January 2, 2006"}}</div>
</div>
{{end}}
</section>
- <div>
+ <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>