Create build step for the web server (#289)
* Create build step for the web server * Update bskyweb routes and 404 behavior
This commit is contained in:
parent
8629e167cd
commit
8d2e649b4d
9 changed files with 169 additions and 27 deletions
|
@ -2,14 +2,26 @@
|
|||
|
||||
{% block head_title %}Error {{ statusCode }} - Bluesky{% endblock %}
|
||||
|
||||
{# don't include the bundle on error pages #}
|
||||
{% block head_bundle %}{% endblock %}
|
||||
|
||||
{% block body_all %}
|
||||
{% if statusCode == 404 %}
|
||||
<h1>404: Not Found</h1>
|
||||
{% else %}
|
||||
<h1>{{ statusCode }}: Server Error</h1>
|
||||
<p>Sorry about that! Our <a href="https://bluesky.statuspage.io/">Status Page</a> might have more context.
|
||||
{% block noscript_extra %}
|
||||
{%- if statusCode == 404 %}
|
||||
<h1>404: Not Found</h1>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
|
||||
{# don't include the bundle on non-404 error pages #}
|
||||
{% block head_bundle %}
|
||||
{% if statusCode == 404 %}
|
||||
{{ super() }}
|
||||
{% else %}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{%- block body_all %}
|
||||
{% if statusCode == 404 %}
|
||||
{{ super() }}
|
||||
{% else %}
|
||||
<h1>{{ statusCode }}: Server Error</h1>
|
||||
<p>Sorry about that! Our <a href="https://bluesky.statuspage.io/">Status Page</a> might have more context.
|
||||
{% endif %}
|
||||
{% endblock -%}
|
Loading…
Add table
Add a link
Reference in a new issue