mirror of
https://github.com/privacyguides/privacyguides.org.git
synced 2025-07-01 17:22:39 +00:00
style: Homepage performance improvements (#2806)
This commit is contained in:
@ -79,6 +79,9 @@ async function main() {
|
||||
avatar.width = 20;
|
||||
avatar.height = 20;
|
||||
avatar.className = "middle";
|
||||
avatar.loading = "lazy";
|
||||
avatar.ariaHidden = "true";
|
||||
avatar.alt = "";
|
||||
author.appendChild(avatar);
|
||||
var namespan = document.createElement('span');
|
||||
namespan.innerText = " Posted by " + author_data['username'];
|
||||
|
@ -121,6 +121,6 @@
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
{% block scripts %}
|
||||
<script src="{{ 'assets/javascripts/discourse-topics.js' | url }}"></script>
|
||||
<script defer src="{{ 'assets/javascripts/discourse-topics.js' | url }}"></script>
|
||||
{{ super() }}
|
||||
{% endblock %}
|
||||
|
@ -27,7 +27,7 @@
|
||||
{% for alt in config.extra.alternate %}
|
||||
{% if alt.lang == config.theme.language %}
|
||||
<button class="md-header__button md-icon" aria-label="{{ lang.t('select.language') }}">
|
||||
<img alt="{{ config.theme.language }}" class="twemoji" src="{{ alt.icon }}">
|
||||
<img alt="{{ config.theme.language }}" class="twemoji" src="{{ alt.icon }}" width="20" height="20">
|
||||
</button>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
@ -40,7 +40,7 @@
|
||||
hreflang="{{ alt.lang }}"
|
||||
class="md-select__link"
|
||||
>
|
||||
<img alt="{{ alt.lang }}" class="twemoji" src="{{ alt.icon }}">
|
||||
<img alt="{{ alt.lang }}" class="twemoji" src="{{ alt.icon }}" width="20" height="20">
|
||||
{{ alt.name }}
|
||||
</a>
|
||||
</li>
|
||||
|
@ -29,7 +29,7 @@
|
||||
<br />
|
||||
{{ copyright.note }}
|
||||
<br />
|
||||
<a href='/license'>
|
||||
<a href='/license' aria-label="More information about our website license.">
|
||||
{% for icon in copyright.license %}
|
||||
<span class="twemoji">{% include ".icons/" ~ icon ~ ".svg" %}</span>
|
||||
{% endfor %}
|
||||
|
@ -23,5 +23,5 @@
|
||||
<img src="{{ 'assets/brand/logos/svg/logo/privacy-guides-rainbow-logo-notext.svg#only-light' | url }}" alt="logo">
|
||||
<img src="{{ 'assets/brand/logos/svg/logo/privacy-guides-rainbow-logo-notext-darkbg.svg#only-dark' | url }}" alt="logo">
|
||||
#} -->
|
||||
<img src="{{ 'assets/brand/logos/svg/logo/privacy-guides-logo-notext.svg#only-light' | url }}" alt="logo">
|
||||
<img src="{{ 'assets/brand/logos/svg/logo/privacy-guides-logo-notext-darkbg.svg#only-dark' | url }}" alt="logo">
|
||||
<img src="{{ 'assets/brand/logos/svg/logo/privacy-guides-logo-notext.svg#only-light' | url }}" alt="logo" width="24" height="24">
|
||||
<img src="{{ 'assets/brand/logos/svg/logo/privacy-guides-logo-notext-darkbg.svg#only-dark' | url }}" alt="logo" width="24" height="24">
|
||||
|
Reference in New Issue
Block a user