Fix fontawesome usage and images in home template

Fontawesome in now loaded via a "kit" and the images in the home
template now have a lower quality.
This commit is contained in:
Tobias Reisinger 2020-09-22 00:16:14 +02:00
parent 0b18eae2cf
commit 5c62af5ecc
3 changed files with 4 additions and 6 deletions

1
.gitignore vendored
View file

@ -1 +0,0 @@
fontawesome/

View file

@ -50,7 +50,7 @@ <h3>
{% if news_latest.media.images %}
{% set text_class = 'col-12 col-md-9' %}
<div class="col-12 col-md-3">
<img width="100%" src="{{ news_latest.media.images|first.url }}">
<img width="100%" src="{{ news_latest.media.images|first.quality(25).url }}">
</div>
{% endif %}
<div class="{{ text_class }}">
@ -67,7 +67,7 @@ <h3>
{% if child.media.images|first %}
{% set text_class = 'col-12 col-md-9' %}
<div class="col-12 col-md-3">
<img width="100%" src="{{ child.media.images|first.url }}">
<img width="100%" src="{{ child.media.images|first.quality(25).url }}">
</div>
{% endif %}
<div class="{{ text_class }}">

View file

@ -4,7 +4,7 @@
<head>
{% block head %}
<meta charset="utf-8" />
<title>{% if header.title %}{{ header.title|e('html') }} | {% endif %}{{ site.title|e('html') }}</title>
<title>{% if header.title %}{{ header.title|e('html') }} | {% endif %}{% if page.parent and page.parent.title %}{{ page.parent.title|e('html') }} | {% endif %}{{ site.title|e('html') }}</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
@ -24,9 +24,7 @@
{% endblock head %}
{% block stylesheets %}
{# do assets.addCss('https://unpkg.com/purecss@1.0.0/build/pure-min.css', 100) #}
{% do assets.addCss('https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css', 100) %}
{% do assets.addCss('theme://fontawesome/css/all.min.css', 99) %}
{% do assets.addCss('theme://css/custom.css', 96) %}
{% do assets.addCss('theme://css/sidebar.css', 96) %}
{% endblock %}
@ -35,6 +33,7 @@
{% do assets.addJs('jquery', 100) %}
{% do assets.addJs('https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js', 99) %}
{% do assets.addJs('theme://js/core-functions.js', 98) %}
{% do assets.addJs('https://kit.fontawesome.com/b5819e2db9.js', 97) %}
{% endblock %}
{% block assets_css %}