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 722b94c
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 10 deletions.
Binary file not shown.
File renamed without changes.
5 changes: 5 additions & 0 deletions rero_ils/theme/templates/rero_ils/_favicon.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<!--[if IE]><link rel="shortcut icon" href="{{ url_for('static', filename='favicon.ico') }}" /><![endif]-->
<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") }}" />
<link rel="manifest" href="{{ url_for('static', filename="manifest.json") }}" />
12 changes: 2 additions & 10 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,14 +61,7 @@
{%- endfor %}
{%- endif %}
{%- endblock %}
{%- 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 %}
{%- endblock head_apple_icons %}
{% include 'rero_ils/_favicon.html' %}
{%- endblock head_links %}
{%- block header %}{% endblock header %}
{%- block css %}
Expand Down
1 change: 1 addition & 0 deletions rero_ils/theme/templates/rero_ils/professional.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
<title>Admin</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<base href="/professional">
{% include 'rero_ils/_favicon.html' %}
{{ node_assets('@rero/rero-ils-ui/dist/admin', ['styles.*css'], 'css') }}
{{ node_assets('@rero/rero-ils-ui/dist/admin', ['styles.*css'], 'css', 'media="print" onload="this.media=\'all\'"') }}
</head>
Expand Down

0 comments on commit 722b94c

Please sign in to comment.