[2025-05-09] Adding openring
to bottom of posts, adding serve script
https://sr.ht/~sircmpwn/openring/
This commit is contained in:
parent
10b6d8584f
commit
6f6de59de0
3 changed files with 63 additions and 0 deletions
50
_includes/openringTemplate.html
Normal file
50
_includes/openringTemplate.html
Normal 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>
|
|
@ -1,4 +1,5 @@
|
||||||
<hr><br>
|
<hr><br>
|
||||||
<div style="text-align: center;">
|
<div style="text-align: center;">
|
||||||
Issues or comments? <a href="mailto:andrew@andrewconl.in">Email me!</a>
|
Issues or comments? <a href="mailto:andrew@andrewconl.in">Email me!</a>
|
||||||
|
{% include openring.html %}
|
||||||
</div>
|
</div>
|
||||||
|
|
12
serve.sh
Normal file
12
serve.sh
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue