chore(overrides): migrate deployment specific banner outside announcements

Signed-off-by: Andrei Jiroh Halili <ajhalili2006@andreijiroh.eu.org>
This commit is contained in:
Andrei Jiroh Halili 2023-09-30 01:43:21 +08:00
parent f4e605152a
commit f21d3f10b6
No known key found for this signature in database
GPG key ID: 67BFC91B3DA12BE8
3 changed files with 67 additions and 23 deletions

View file

@ -10,23 +10,28 @@ SPDX-License-Identifier: MIT
{% endblock %}
<!-- Staging build -->
{% block announce %}
{% if config.extra.deployment == "staging" %}
You're previewig the staging build of @ajhalili2006's website on <a href="https://readthedocs.org">RTD Community</a>. <strong><a href="https://andreijiroh.eu.org">Go back to production</a></strong>
{% else %}
For updates follow <strong>@ajhalili2006</strong> on
<a rel="me" href="https://tilde.zone/@ajhalili2006">
<span class="twemoji mastodon">
{% include ".icons/fontawesome/brands/mastodon.svg" %}
</span>
<strong>the tildeverse</strong>
</a>
and
<a href="https://substack.com/@ajhalili2006">
<span class="twemoji substack">
{% include ".icons/simple/substack.svg" %}
</span>
<strong>Substack</strong>
</a>
{% endif %}
For updates follow <strong>@ajhalili2006</strong> on
<a rel="me" href="https://tilde.zone/@ajhalili2006">
<span class="twemoji mastodon">
{% include ".icons/fontawesome/brands/mastodon.svg" %}
</span>
<strong>the tildeverse</strong>
</a>
and
<a href="https://substack.com/@ajhalili2006">
<span class="twemoji substack">
{% include ".icons/simple/substack.svg" %}
</span>
<strong>Substack</strong>
</a>
{% endblock %}
{% block container %}
<div class="md-content" data-md-component="content">
<article class="md-content__inner md-typeset">
{% block content %}
{% include "partials/content.html" %}
{% endblock %}
</article>
</div>
{% endblock %}