diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index a298883..a6b5f1b 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -17,6 +17,12 @@ jobs: run: | python -m pip install --upgrade poetry poetry install + - name: openring + run: | + git clone https://git.sr.ht/~sircmpwn/openring + cd openring + go build + ./openring -S ../openring/urls < ../openring/in.html > ../templates/openring.html - name: Build site run: make build - name: Publish to GitHub Pages diff --git a/openring/in.html b/openring/in.html new file mode 100644 index 0000000..c8a72c0 --- /dev/null +++ b/openring/in.html @@ -0,0 +1,54 @@ + +
+

Articles from blogs I follow around the net

+
+ {{range .Articles}} +
+

+ {{.Title}} +

+

{{.Summary}}

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

+ Generated by + openring +

+
+ diff --git a/openring/urls b/openring/urls new file mode 100644 index 0000000..aa8ac3d --- /dev/null +++ b/openring/urls @@ -0,0 +1 @@ +https://drewdevault.com/feed.xml diff --git a/templates/blog-post.html b/templates/blog-post.html index cb7afb5..1b4e3ab 100644 --- a/templates/blog-post.html +++ b/templates/blog-post.html @@ -6,13 +6,14 @@ {% block page_title %}{{ this.title }} | {{ super() }}{% endblock %} {% block main_content %} - {{ render_blog_post(this) }} -
- If you want to approach me directly about this post use the most appropriate channel - from the about page. -
+{{ render_blog_post(this) }} +
+ If you want to approach me directly about this post use the most appropriate channel + from the about page. +
+{% include "openring.html" %} {% endblock %} {% block endbody %} - {{ super() }} +{{ super() }} {% endblock %} diff --git a/templates/openring.html b/templates/openring.html new file mode 100644 index 0000000..fc46ec6 --- /dev/null +++ b/templates/openring.html @@ -0,0 +1,58 @@ +
+

Articles from blogs I follow around the net

+
+ +
+

+ Breaking down a small language design proposal +

+

+ We are developing a new systems programming language. The name is a secret, so + we’ll call it xxxx instead. In xxxx, we have a general requirement that all variables + must be initialized. This is fine for the simple case, such as “let x: int = + 10”. But, it doe…

+ + via Drew DeVault's blog + + December 30, 2021 +
+ +
+

+ Generated by + openring +

+
+