From 1d044b51ddaeadd931c9a14cef3a35bafdabf799 Mon Sep 17 00:00:00 2001 From: Andrea Rogers Date: Fri, 4 Oct 2024 16:12:27 -0500 Subject: [PATCH] blogposts: Openring integration --- GNUmakefile | 21 +++++++++++++++++++-- scripts/blogposts.bash | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+), 2 deletions(-) diff --git a/GNUmakefile b/GNUmakefile index 21d67f1..2c7d97d 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -1,5 +1,14 @@ 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) ifeq ($(UNAME),Linux) @@ -24,7 +33,15 @@ vcf%.html: vcf%.head.html nav.head.html blog/vcf%.indicator.html nav.tail.html w cat $^ > $@ 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 git submodule update --init --recursive -- modules/resume diff --git a/scripts/blogposts.bash b/scripts/blogposts.bash index 4a06718..1c2b641 100755 --- a/scripts/blogposts.bash +++ b/scripts/blogposts.bash @@ -19,5 +19,37 @@ done cat < + +

Other People's Posts

+ {{range .Articles}} +
+

+ {{.Title}} +

+

{{.Summary}}

+ + via {{.SourceTitle}} + + {{.Date | datef "January 2, 2006"}} +
+ {{end}} + +

+ +

+ Generated by + openring +

+
+ + FTR