made itch and steam links optional

This commit is contained in:
Ell 2024-05-21 18:15:21 +02:00
parent 1e2245bc97
commit 750f7579f7
2 changed files with 18 additions and 4 deletions

View file

@ -17,9 +17,13 @@
<h4 class="devlog-title">{{ post.title }}</h4> <h4 class="devlog-title">{{ post.title }}</h4>
<div class="text-muted">{{ post.date | date_to_string }}</div> <div class="text-muted">{{ post.date | date_to_string }}</div>
<div> <div>
<a href="{{ post.url }}">Read this post</a> &ndash; <a href="{{ post.url }}">Read this post</a>
<a href="{{ post.itch }}">Read on itch</a> &ndash; {% if post.itch %}
<a href="{{ post.steam }}">Read on Steam</a> &ndash; <a href="{{ post.itch }}">Read on itch</a>
{% endif %}
{% if post.steam %}
&ndash; <a href="{{ post.steam }}">Read on Steam</a>
{% endif %}
</div> </div>
</div> </div>
{% endif %} {% endif %}

View file

@ -13,7 +13,17 @@ nav: blognav.html
<div class="section top-margin full-width-images less-wide"> <div class="section top-margin full-width-images less-wide">
<h1>{{ page.title }}</h1> <h1>{{ page.title }}</h1>
<p>📖 You can also read this post <a href="{{ page.itch }}">on itch</a> or <a href="{{ page.steam }}">on Steam</a>, or you can subscribe to <a href="../../#subscribe">the mailing list</a> or <a href="/feed.xml">the Atom feed</a>.</p>
<p>
📖 You can also read this post
{% if page.itch %}
<a href="{{ page.itch }}">on itch</a>,
{% endif %}
{% if page.steam %}
<a href="{{ page.steam }}">on Steam</a>,
{% endif %}
through <a href="../../#subscribe">the mailing list</a> or by subscribing to <a href="/feed.xml">the Atom feed</a>.
</p>
{% include anchor_headings.html html=content anchorBody="#" anchorClass="anchor-heading" %} {% include anchor_headings.html html=content anchorBody="#" anchorClass="anchor-heading" %}
</div> </div>