blogposts: Openring integration
This commit is contained in:
parent
60e58523ca
commit
1d044b51dd
2 changed files with 51 additions and 2 deletions
21
GNUmakefile
21
GNUmakefile
|
|
@ -1,5 +1,14 @@
|
||||||
DEPLOY_HTTPROOT ?= httproot
|
DEPLOY_HTTPROOT ?= httproot
|
||||||
DEPLOY_BLOBS = andrea0s-plain-noextfonts.svg blob/ebrimabd.ttf blob/window-capture blob/vcf-2024-pile.jpg
|
DEPLOY_BLOBS = andrea0s-plain-noextfonts.svg \
|
||||||
|
blob/ebrimabd.ttf \
|
||||||
|
blob/window-capture \
|
||||||
|
blob/vcf-2024-pile.jpg
|
||||||
|
AWESOME_BLOGS := -s https://lwn.net/headlines/rss \
|
||||||
|
-s https://lobste.rs/rss \
|
||||||
|
-s https://blog.haskell.org/atom.xml \
|
||||||
|
-s https://www.phoronix.com/rss.php \
|
||||||
|
-s https://static.fsf.org/fsforg/rss/news.xml \
|
||||||
|
-s https://emersion.fr/blog/rss.xml
|
||||||
|
|
||||||
UNAME = $(shell uname)
|
UNAME = $(shell uname)
|
||||||
ifeq ($(UNAME),Linux)
|
ifeq ($(UNAME),Linux)
|
||||||
|
|
@ -24,7 +33,15 @@ vcf%.html: vcf%.head.html nav.head.html blog/vcf%.indicator.html nav.tail.html w
|
||||||
cat $^ > $@
|
cat $^ > $@
|
||||||
|
|
||||||
blog.inner.html: $(BLOG_SRC)
|
blog.inner.html: $(BLOG_SRC)
|
||||||
scripts/blogposts.bash > $@
|
scripts/blogposts.bash \
|
||||||
|
| modules/openring/openring -n 12 -p 3 \
|
||||||
|
$(AWESOME_BLOGS) > $@
|
||||||
|
|
||||||
|
modules/openring/openring.go: .gitmodules
|
||||||
|
git submodule update --init --recursive -- modules/openring
|
||||||
|
|
||||||
|
modules/openring/openring: modules/openring/openring.go
|
||||||
|
cd modules/openring && go build
|
||||||
|
|
||||||
modules/resume/resume.md: .gitmodules
|
modules/resume/resume.md: .gitmodules
|
||||||
git submodule update --init --recursive -- modules/resume
|
git submodule update --init --recursive -- modules/resume
|
||||||
|
|
|
||||||
|
|
@ -19,5 +19,37 @@ done
|
||||||
|
|
||||||
cat <<FTR # Short for Fetterman
|
cat <<FTR # Short for Fetterman
|
||||||
</dl> <!-- no longer on the dl -->
|
</dl> <!-- no longer on the dl -->
|
||||||
|
|
||||||
|
<h2>Other People's Posts</h2>
|
||||||
|
{{range .Articles}}
|
||||||
|
<div>
|
||||||
|
<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}}
|
||||||
|
|
||||||
|
</br></br>
|
||||||
|
<small>
|
||||||
|
<p>
|
||||||
|
Generated by
|
||||||
|
<a href="https://git.sr.ht/~sircmpwn/openring">openring</a>
|
||||||
|
</p>
|
||||||
|
</small>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.webring .title {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
.webring .summary {
|
||||||
|
font-size: 0.8rem;
|
||||||
|
flex: 1 1 0;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
FTR
|
FTR
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue