same as last couple of commits

pull/143/head
Aevann 2023-04-25 17:59:16 +02:00
parent efac5ff890
commit 0ca88b5941
12 changed files with 23 additions and 23 deletions

View File

@ -13,9 +13,9 @@ ASSET_URL = '/assets/'
ASSET_CACHE = defaultdict(lambda: None)
if IS_DKD():
ASSET_SUBDIRS.extend(['/DKD/js'])
ASSET_SUBDIRS.extend(['/events/DKD/js'])
elif IS_FISTMAS():
ASSET_SUBDIRS.extend(['/fistmas/css', '/fistmas/css/themes', '/fistmas/js', '/fistmas/js/vendor'])
ASSET_SUBDIRS.extend(['/events/fistmas/css', '/events/fistmas/css/themes', '/events/fistmas/js', '/events/fistmas/js/vendor'])
def assetcache_build(asset_dir, subdirs):
for subdir in subdirs:

View File

@ -5,7 +5,7 @@
{% include "modals/expanded_image.html" %}
{% if err or '@' not in request.path %}
{% if IS_FISTMAS() and not sub %}
{% include 'fistmas/banner.html' %}
{% include 'events/fistmas/banner.html' %}
{% else %}
{% if IS_BIRTHGAY() and not sub %}
{% set src = macros.random_image("assets/events/birthgay/images/banners/" ~ SITE_NAME) %}
@ -101,9 +101,9 @@
{% endif %}
{% if IS_DKD() %}
{% include "DKD/music.html" %}
{% include "events/DKD/music.html" %}
{% elif IS_FISTMAS() %}
{% include "fistmas/music.html" %}
{% include "events/fistmas/music.html" %}
{% endif %}
{% endblock %}

View File

@ -4,5 +4,5 @@
{% set song = "/" ~ path ~ "/" ~ listdir('files/' ~ path)|random() ~ '?x=1' %}
<input hidden id="DKD-song" value="{{song}}">
{% endif %}
<script defer src="{{'DKD/js/music.js' | asset}}"></script>
<script defer src="{{'events/DKD/js/music.js' | asset}}"></script>
{% endif %}

View File

@ -8,24 +8,24 @@
{# idk why snow isn't working vvvvvvvvvv #}
{% if p.award_count("snow", v) %}
<script defer src="{{'fistmas/js/vendor/snow.js'|asset}}"></script>
<script defer src="{{'events/fistmas/js/vendor/snow.js'|asset}}"></script>
{% endif %}
{% if p.award_count("frostbite", v) %}
<div class="frost"></div>
<script defer src="{{'fistmas/js/frostbite.js' | asset}}"></script>
<script defer src="{{'fistmas/css/frostbite.css' | asset}}"></script>
<script defer src="{{'events/fistmas/js/frostbite.js' | asset}}"></script>
<script defer src="{{'events/fistmas/css/frostbite.css' | asset}}"></script>
{% endif %}
</div>
{% if p.award_count("lights", v) %}
<link rel="stylesheet" href="{{('fistmas/css/lights.css') | asset}}">
<link rel="stylesheet" href="{{('events/fistmas/css/lights.css') | asset}}">
{% endif %}
{% if p.award_count("candycane", v) %}
<link rel="stylesheet" href="{{('fistmas/css/candycane.css') | asset}}">
<link rel="stylesheet" href="{{('events/fistmas/css/candycane.css') | asset}}">
{% endif %}
{% if p.award_count("fireplace", v) %}
<link rel="stylesheet" href="{{('fistmas/css/fireplace.css') | asset}}">
<link rel="stylesheet" href="{{('events/fistmas/css/fireplace.css') | asset}}">
{% endif %}

View File

@ -1,16 +1,16 @@
{% if request.path == '/' %}
<script defer src="{{'fistmas/js/vendor/snow.js'|asset}}"></script>
<script defer src="{{'events/fistmas/js/vendor/snow.js'|asset}}"></script>
{% endif %}
<a rel="nofollow noopener noreferrer" href="https://www.youtube.com/watch?v=BuKft9LpL_0" style="text-decoration: none !important">
{% if SITE_NAME == 'rDrama' and range(1, 20)|random() == 1 %}
<img loading="lazy" src="/assets/events/fistmas/images/banner_new.webp" style="width:100%" />
{% else %}
<link rel="stylesheet" href="{{'fistmas/css/banner.css' | asset}}">
<link rel="stylesheet" href="{{'events/fistmas/css/banner.css' | asset}}">
{% if SITE_NAME == 'rDrama' %}
{% include "fistmas/banner_rDrama.svg" %}
{% include "events/fistmas/banner_rDrama.svg" %}
{% else %}
{% include "fistmas/banner.svg" %}
{% include "events/fistmas/banner.svg" %}
{% endif %}
{% endif %}
</a>

View File

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 17 KiB

View File

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 17 KiB

View File

@ -4,5 +4,5 @@
{% set song = "/" ~ path ~ "/" ~ listdir('files/' ~ path)|random() ~ '?x=1' %}
<input hidden id="fistmas-song" value="{{song}}">
{% endif %}
<script defer src="{{'fistmas/js/music.js' | asset}}"></script>
<script defer src="{{'events/fistmas/js/music.js' | asset}}"></script>
{% endif %}

View File

@ -90,5 +90,5 @@
</div>
{% if IS_FISTMAS() %}
<script defer src="{{'fistmas/js/darkmode.js' | asset}}"></script>
<script defer src="{{'events/fistmas/js/darkmode.js' | asset}}"></script>
{% endif %}

View File

@ -80,5 +80,5 @@
</div>
{% if IS_FISTMAS() %}
<script defer src="{{'fistmas/js/darkmode.js' | asset}}"></script>
<script defer src="{{'events/fistmas/js/darkmode.js' | asset}}"></script>
{% endif %}

View File

@ -9,7 +9,7 @@
{% block pagetype %}thread{% endblock %}
{% block head_final %}
{% include "awards.html" %}
{% include "fistmas/awards.html" %}
{% include "events/fistmas/awards.html" %}
{% endblock %}
{% set ups=p.upvotes %}
{% set downs=p.downvotes %}

View File

@ -136,12 +136,12 @@
{% endif %}
{% if IS_FISTMAS() %}
<link rel="stylesheet" href="{{'fistmas/css/fistmas.css' | asset}}">
<link rel="stylesheet" href="{{'events/fistmas/css/fistmas.css' | asset}}">
{% if v and v.event_darkmode %}
<link rel="stylesheet" href="{{'fistmas/css/themes/dark.css'| asset}}">
<link rel="stylesheet" href="{{'events/fistmas/css/themes/dark.css'| asset}}">
{% else %}
<link rel="stylesheet" href="{{'fistmas/css/themes/light.css'| asset}}">
<link rel="stylesheet" href="{{'events/fistmas/css/themes/light.css'| asset}}">
{% endif %}
{% endif %}