add cool banner for error pages

pull/36/head
justcool393 2022-12-02 15:24:02 -06:00
parent 15dc9c4cf7
commit df3622297b
2 changed files with 4 additions and 3 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

View File

@ -3,12 +3,13 @@
{% block body %}
{% block banner %}
{% include "modals/expanded_image.html" %}
{% if '@' not in request.path %}
{% if err or '@' not in request.path %}
{% if EVENT_BANNER and not sub %}
{% include 'event/' + EVENT_BANNER %}
{% else %}
{% if sub %}
{% if err and SITE_NAME == 'rDrama' %}
{% set src = "banner_error.webp" | asset_siteimg %}
{% elif sub %}
{% set src = sub.banner_url %}
{% set alt = ['/h/', sub, 'banner']|join %}
{% set class = 'site-banner-hole' %}