gabrielgio.me @ a588d31babc97d8749cf531379c9c2e25d7225fa

feat: Add openring feed

Add a nice way to suggest some feed I interested in.
diff --git a/.build.yml b/.build.yml
index d58a4e66f1c467d6633f25f01c3e76b273c7826a..d38abf1d65af20937b392daccbcefd68300e33b9 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 364fdec1aa19d3a1f8d926d500c0beffe5674be8..b6a10615e56543164a2d6c83b0b25a03d6c233a1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,3 @@
 public/
+
+openring.html
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000000000000000000000000000000000000..7bdc6d14fb71db0af2ddd1b56b205036792d6fac
--- /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 c1424359ba92699a7d03e19e632b8d4400a8fd97..0e07e11d6c972f636580bc98a06e9c4cd0d533e4 100644
--- a/themes/flamingo/layouts/index.html
+++ b/themes/flamingo/layouts/index.html
@@ -7,7 +7,13 @@ 		{{ range .Paginator.Pages }}
 		{{ .Render "summary" }}
 		{{ end }}
 	</div>
-	<!-- {{ partial "pagination.html" . }} -->
+		<div>
+			<h3>WHAT I READ</h3>
+		</div>
+		<div>
+			<ul>
+                {{ partial "openring.html" . }}
+			</ul>
+		</div>
 </main>
-<!-- {{ partial "sidebar.html" . }} -->
 {{ end }}
diff --git a/themes/flamingo/layouts/partials/sidebar.html b/themes/flamingo/layouts/partials/sidebar.html
index 9070f565bca46b6e751f11c1b6b7b8d22183d2b4..c7288f0404c1d6734ac00193c45ba8c6aa1484bf 100644
--- a/themes/flamingo/layouts/partials/sidebar.html
+++ b/themes/flamingo/layouts/partials/sidebar.html
@@ -1,6 +1,15 @@
 <aside>
 	<div>
 		<div>
+			<h3>WHAT I READ</h3>
+		</div>
+		<div>
+			<ul>
+                {{ partial "openring.html" . }}
+			</ul>
+		</div>
+
+		<div>
 			<h3>LATEST POSTS</h3>
 		</div>
 		<div>
diff --git a/webring.template b/webring.template
new file mode 100644
index 0000000000000000000000000000000000000000..6faebe723aa98799964f7714351c6848ce625d03
--- /dev/null
+++ b/webring.template
@@ -0,0 +1,4 @@
+{{range .Articles}}
+<li>[<a href="{{.SourceLink}}">{{.SourceTitle}}</a>] <a href="{{ .Link }}">{{ .Title }}</a></li>
+{{end}}
+