diff --git a/overrides/404.html b/overrides/404.html index 3d42732..e8a3583 100644 --- a/overrides/404.html +++ b/overrides/404.html @@ -7,10 +7,13 @@ {% extends "main.html" %} {% block content %}

404 - Not found

-

Either the URL has been moved without redirects, taken down for any reasons, or it doesn't exist (yet).

+

+ Either the URL has been moved without redirects, taken down for any reasons, or it doesn't exist (yet). +

Troubleshooting tips

-

Try checking the URL for any misspellings or improper use of dashes, underscores and periods.

-

If you're working in this site and you hit an URL configured for redirects (at Cloudflare Pages or similiar), try configuring redirects in the Mkdocs config first.

-

Depending on the site version you're viewing, you may need to switch between production - and staging versions of the website.

+

Try checking the URL for any misspellings or improper use of dashes, underscores and periods.

+

If you're working in this site and you hit an URL configured for redirects (at Cloudflare Pages or similiar), try configuring redirects in the Mkdocs config first.

+

Depending on the site version you're viewing, you may need to switch between production + and staging versions of the website. (The tilde versions of the site may be + may lag behind Cloudflare Pages deploys.)

{% endblock %} diff --git a/overrides/main.html b/overrides/main.html index e1fd16e..92df026 100644 --- a/overrides/main.html +++ b/overrides/main.html @@ -10,23 +10,28 @@ SPDX-License-Identifier: MIT {% endblock %} {% block announce %} - {% if config.extra.deployment == "staging" %} - You're previewig the staging build of @ajhalili2006's website on RTD Community. Go back to production - {% else %} - For updates follow @ajhalili2006 on - - - {% include ".icons/fontawesome/brands/mastodon.svg" %} - - the tildeverse - - and - - - {% include ".icons/simple/substack.svg" %} - - Substack - - {% endif %} +For updates follow @ajhalili2006 on + + + {% include ".icons/fontawesome/brands/mastodon.svg" %} + +the tildeverse + +and + + + {% include ".icons/simple/substack.svg" %} + + Substack + {% endblock %} +{% block container %} +
+
+ {% block content %} + {% include "partials/content.html" %} + {% endblock %} +
+
+ {% endblock %} diff --git a/overrides/partials/content.html b/overrides/partials/content.html new file mode 100644 index 0000000..43eb635 --- /dev/null +++ b/overrides/partials/content.html @@ -0,0 +1,36 @@ +{% if config.extra.deployment %} +
+ {% if config.extra.deployment == "staging" %} +

+ You're previewing the staging build of @ajhalili2006's website on RTD Community. +

+

+ Deploys might be a bit faster there, but it may contain content not yet ready for production deployment or + we might skipped GitLab CI for the latest commit. +

+ {% elif config.extra.deployment == "tilde" %} +

You're viewing ~ajhalili2006's website from the tildeverse.

+

+ This site build's content might be outdated due to failing CI, delayed synchorizations and local cache, among other reasons. +

+ {% endif %} + Go back to production +
+{% endif %} +{% if "material/tags" in config.plugins and tags %} + {% include "partials/tags.html" %} +{% endif %} +{% include "partials/actions.html" %} +{% if "\x3ch1" not in page.content %} +

{{ page.title | d(config.site_name, true)}}

+{% endif %} +{{ page.content }} +{% if page.meta and ( +page.meta.git_revision_date_localized or +page.meta.revision_date +) %} + {% include "partials/source-file.html" %} +{% endif %} +{% include "partials/feedback.html" %} +{% include "partials/comments.html" %} + \ No newline at end of file