Skip to content

Commit

Permalink
fix: favicon
Browse files Browse the repository at this point in the history
Co-Authored-by: Bertrand Zuchuat <[email protected]>
  • Loading branch information
Garfield-fr committed Jul 23, 2024
1 parent b6a41a7 commit 9240274
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
Binary file not shown.
File renamed without changes.
14 changes: 6 additions & 8 deletions rero_ils/theme/templates/rero_ils/page.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{# -*- coding: utf-8 -*-

RERO ILS
Copyright (C) 2019 RERO
Copyright (C) 2019-2024 RERO

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
Expand Down Expand Up @@ -52,7 +52,6 @@
<title>{{ title }}: {{ org_name }}</title>
{%- endblock head_title %}
{%- block head_links %}
<link rel="shortcut icon" href="{{ url_for('static', filename='favicon.ico') }}" />
{%- if keywords %}
<link rel="canonical" href="{{ canonical_url }}" />{% endif %}
{%- block head_links_langs %}
Expand All @@ -62,13 +61,12 @@
{%- endfor %}
{%- endif %}
{%- endblock %}
<!--[if IE]><link rel="shortcut icon" href="{{ url_for('static', filename='favicon.ico') }}" /><![endif]-->
<link rel="manifest" href="{{ url_for('static', filename="manifest.json") }}" />
{%- block head_apple_icons %}
{# TODO: generate the appropriate files #}
{%- for size in [144, 114, 72, 57] %}
{%- set icon_name = 'apple-touch-icon-%d-precomposed.png' | format(size) %}
<link rel="apple-touch-icon-precomposed" sizes="{{ size }}x{{ size }}"
href="{{ url_for('static', filename=icon_name) }}" />
{%- endfor %}
<link rel="apple-touch-icon" sizes="180x180" href="{{ url_for('static', filename="apple-touch-icon.png") }}" />
<link rel="icon" type="image/png" sizes="32x32" href="{{ url_for('static', filename="favicon-32x32.png") }}" />
<link rel="icon" type="image/png" sizes="16x16" href="{{ url_for('static', filename="favicon-16x16.png") }}" />
{%- endblock head_apple_icons %}
{%- endblock head_links %}
{%- block header %}{% endblock header %}
Expand Down

0 comments on commit 9240274

Please sign in to comment.