Revert "Revert "stop headericon from making page jump""

This reverts commit 7a9305e3fb.
pull/143/head
Aevann 2023-05-02 22:00:46 +03:00
parent 7a9305e3fb
commit e17dbedbde
1 changed files with 6 additions and 1 deletions

View File

@ -71,8 +71,13 @@
{% set icon_url = macros.random_image('assets/events/fistmas/images/icon/' ~ SITE_NAME) %}
{% else %}
{% set icon_url = 'headericon.webp' | asset_siteimg %}
{% if SITE_NAME == 'rDrama' %}
{% set width="40" %}
{% elif SITE_NAME == 'WPD' %}
{% set width="45" %}
{% endif %}
{% endif %}
<img loading="lazy" id="header--icon" alt="header icon" {% if sub %}src="{{sub.marsey_url}}"{% else %}src="{{icon_url}}"{% endif %}>
<img loading="lazy" id="header--icon" alt="header icon" {% if sub %}src="{{sub.marsey_url}}"{% else %}src="{{icon_url}}"{% endif %} {% if width %}width="{{width}}"{% endif %}>
</a>
{% if sub %}