From 750f7579f7a413d4a3bb482ba3eac8cbc477621e Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Tue, 21 May 2024 18:15:21 +0200 Subject: [PATCH] made itch and steam links optional --- web/_includes/devlog_category.html | 10 +++++++--- web/_layouts/blog.html | 12 +++++++++++- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/web/_includes/devlog_category.html b/web/_includes/devlog_category.html index 04c1bc8..faa0a26 100644 --- a/web/_includes/devlog_category.html +++ b/web/_includes/devlog_category.html @@ -17,9 +17,13 @@

{{ post.title }}

{{ post.date | date_to_string }}
- Read this post – - Read on itch – - Read on Steam + Read this post + {% if post.itch %} + – Read on itch + {% endif %} + {% if post.steam %} + – Read on Steam + {% endif %}
{% endif %} diff --git a/web/_layouts/blog.html b/web/_layouts/blog.html index a9711ed..e5c2def 100644 --- a/web/_layouts/blog.html +++ b/web/_layouts/blog.html @@ -13,7 +13,17 @@ nav: blognav.html

{{ page.title }}

-

📖 You can also read this post on itch or on Steam, or you can subscribe to the mailing list or the Atom feed.

+ +

+ 📖 You can also read this post + {% if page.itch %} + on itch, + {% endif %} + {% if page.steam %} + on Steam, + {% endif %} + through the mailing list or by subscribing to the Atom feed. +

{% include anchor_headings.html html=content anchorBody="#" anchorClass="anchor-heading" %}