From a588d31babc97d8749cf531379c9c2e25d7225fa Mon Sep 17 00:00:00 2001 From: Gabriel Arakaki Giovanini Date: Thu, 23 Jun 2022 23:09:17 +0200 Subject: feat: Add openring feed Add a nice way to suggest some feed I interested in. --- .build.yml | 12 +++++++++++- .gitignore | 2 ++ Makefile | 16 ++++++++++++++++ themes/flamingo/layouts/index.html | 10 ++++++++-- themes/flamingo/layouts/partials/sidebar.html | 9 +++++++++ webring.template | 4 ++++ 6 files changed, 50 insertions(+), 3 deletions(-) create mode 100644 Makefile create mode 100644 webring.template diff --git a/.build.yml b/.build.yml index d58a4e6..d38abf1 100644 --- a/.build.yml +++ b/.build.yml @@ -1,7 +1,13 @@ image: alpine/latest packages: - rsync + - go - hugo + - make + +sources: + - https://git.sr.ht/~gabrielgio/gabrielgio.me + - https://git.sr.ht/~sircmpwn/openring secrets: - 008c4f67-b864-47f8-9790-cd32f2ae8516 @@ -10,9 +16,13 @@ environment: deploy: builds@gabrielgio.me tasks: + - openring: | + cd openring + go build -o openring + sudo cp openring /usr/local/bin/ - build: | cd gabrielgio.me - hugo + make - deploy: | cd gabrielgio.me sshopts="ssh -o StrictHostKeyChecking=no" diff --git a/.gitignore b/.gitignore index 364fdec..b6a1061 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ public/ + +openring.html diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..7bdc6d1 --- /dev/null +++ b/Makefile @@ -0,0 +1,16 @@ + + +all: openring + hugo + +serve: openring + hugo serve + + +openring: + openring -n 6 \ + -s https://drewdevault.com/blog/index.xml \ + -s https://mazzo.li/rss.xml \ + -s https://blog.golang.org/feed.atom \ + < webring.template \ + > themes/flamingo/layouts/partials/openring.html diff --git a/themes/flamingo/layouts/index.html b/themes/flamingo/layouts/index.html index c142435..0e07e11 100644 --- a/themes/flamingo/layouts/index.html +++ b/themes/flamingo/layouts/index.html @@ -7,7 +7,13 @@ {{ .Render "summary" }} {{ end }} - +
+

WHAT I READ

+
+
+ +
- {{ end }} diff --git a/themes/flamingo/layouts/partials/sidebar.html b/themes/flamingo/layouts/partials/sidebar.html index 9070f56..c7288f0 100644 --- a/themes/flamingo/layouts/partials/sidebar.html +++ b/themes/flamingo/layouts/partials/sidebar.html @@ -1,5 +1,14 @@