[2025-05-09] Adding openring to bottom of posts, adding serve script

https://sr.ht/~sircmpwn/openring/
This commit is contained in:
Andrew Conlin 2025-05-09 14:10:38 +01:00
parent 10b6d8584f
commit 6f6de59de0
3 changed files with 63 additions and 0 deletions

View file

@ -0,0 +1,50 @@
<!-- License-Id: CC0-1.0 -->
<section class="webring">
<p>Articles from blogs I follow around the net</p>
<section class="articles">
{{range .Articles}}
<div class="article">
<h4 class="title" dir="auto">
<a href="{{.Link}}" target="_blank" rel="noopener">{{.Title}}</a>
</h4>
<p class="summary" dir="auto">{{.Summary}}</p>
<small class="source">
via <a href="{{.SourceLink}}">{{.SourceTitle}}</a>
</small>
<small class="date">{{.Date | datef "January 2, 2006"}}</small>
</div>
{{end}}
</section>
<p class="attribution">
Generated by
<a href="https://git.sr.ht/~sircmpwn/openring">openring</a>
</p>
</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;
background: #32302F;
min-width: 10rem;
}
.webring .summary {
font-size: 0.8rem;
flex: 1 1 0;
}
.webring .attribution {
text-align: right;
font-size: 0.8rem;
color: #555;
}
</style>

View file

@ -1,4 +1,5 @@
<hr><br>
<div style="text-align: center;">
Issues or comments? <a href="mailto:andrew@andrewconl.in">Email me!</a>
{% include openring.html %}
</div>

12
serve.sh Normal file
View file

@ -0,0 +1,12 @@
openring \
-s https://andyconlin.com/feed/ \
-s https://digitalflapjack.com/blog/index.xml \
-s https://gpanders.com/index.xml \
-s https://luke.hsiao.dev/atom.xml \
-s https://wickstrom.tech/feed.xml \
-s https://paulcapewell.com/feed/ \
-s https://www.splitbrain.org/feed/blog \
-s https://lilysthings.org/blog/rss.xml \
< _includes/openringTemplate.html \
> _includes/openring.html
bundle exec jekyll serve