From 7619d0d4d02a7d6b868fbb0a27253bbaf038bfbb Mon Sep 17 00:00:00 2001 From: rowan Date: Mon, 23 Dec 2024 03:35:24 -0600 Subject: [PATCH] add average read times --- content/blog/45dr-postmortem/index.toml | 1 + content/blog/a-roxy-update/index.toml | 1 + content/blog/convenient-unity-attributes/index.toml | 1 + .../index.toml | 1 + content/blog/on-ecs/index.toml | 1 + content/blog/simplifying-code-with-components/index.toml | 1 + layouts/post.html | 9 +++++++++ 7 files changed, 15 insertions(+) diff --git a/content/blog/45dr-postmortem/index.toml b/content/blog/45dr-postmortem/index.toml index c7bc8dd..b0ca868 100644 --- a/content/blog/45dr-postmortem/index.toml +++ b/content/blog/45dr-postmortem/index.toml @@ -1,4 +1,5 @@ title = "45 Day Roguelike Postmortem" created_date = "2022-04-22" tags = ["programming", "game"] +read_time = "5 minutes" diff --git a/content/blog/a-roxy-update/index.toml b/content/blog/a-roxy-update/index.toml index b71ffca..38f99af 100644 --- a/content/blog/a-roxy-update/index.toml +++ b/content/blog/a-roxy-update/index.toml @@ -1,4 +1,5 @@ title = "A Roxy Update" created_date = "2024-02-14" tags = ["programming", "roxy", "web"] +read_time = "2 minutes" diff --git a/content/blog/convenient-unity-attributes/index.toml b/content/blog/convenient-unity-attributes/index.toml index 0c354cd..ea4ce78 100644 --- a/content/blog/convenient-unity-attributes/index.toml +++ b/content/blog/convenient-unity-attributes/index.toml @@ -1,4 +1,5 @@ title = "Convenient Unity Attributes" created_date = "2021-12-09" tags = ["programming", "game", "unity"] +read_time = "5 minutes" diff --git a/content/blog/making-a-static-site-generator-also-a-new-site/index.toml b/content/blog/making-a-static-site-generator-also-a-new-site/index.toml index 55ec982..2e1f91e 100644 --- a/content/blog/making-a-static-site-generator-also-a-new-site/index.toml +++ b/content/blog/making-a-static-site-generator-also-a-new-site/index.toml @@ -1,3 +1,4 @@ title = "Making a Static Site Generator (and a New Site)" created_date = "2023-08-15" tags = ["roxy", "programming", "web"] +read_time = "4 minutes" diff --git a/content/blog/on-ecs/index.toml b/content/blog/on-ecs/index.toml index 19056f5..bc4f9fc 100644 --- a/content/blog/on-ecs/index.toml +++ b/content/blog/on-ecs/index.toml @@ -2,4 +2,5 @@ title = "On ECS" #created_date = "2024-11-30" description = "How ECS changed the way I makes games" tags = ["game-dev"] +read_time = "15 to 20 minutes" diff --git a/content/blog/simplifying-code-with-components/index.toml b/content/blog/simplifying-code-with-components/index.toml index 4e0bbb1..9707220 100644 --- a/content/blog/simplifying-code-with-components/index.toml +++ b/content/blog/simplifying-code-with-components/index.toml @@ -1,4 +1,5 @@ title = "Simplifying Code with Components" created_date = "2021-12-05" tags = ["unity", "game", "programming"] +read_time = "5 minutes" diff --git a/layouts/post.html b/layouts/post.html index d24f761..fc85191 100644 --- a/layouts/post.html +++ b/layouts/post.html @@ -35,6 +35,15 @@ Draft {% endif %} + {% if this.read_time %} +
+ + + {{ this.read_time }} read time + + +
+ {% endif %} {% block article %} {% endblock %}