Skip to content

Commit

Permalink
Merge pull request canonical#13590 from akbarkz/task/WD-9002-update_f…
Browse files Browse the repository at this point in the history
…avicon

[WD-9002] update favicon with support for mobile devices
  • Loading branch information
akbarkz authored Feb 19, 2024
2 parents b5bce7f + 69ff2a9 commit 3ac4843
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 deletions.
Binary file added static/favicons/COF-favicon-48x48.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions static/files/site.webmanifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "Canonical Ubuntu",
"short_name": "",
"icons": [
{
"src": "https://assets.ubuntu.com/v1/9c69b268-COF%20android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "https://assets.ubuntu.com/v1/c55060fd-COF%20android-chrome-512x512.png",
"sizes": "512x512",
"type": "image/png"
}
],
"theme_color": "#ffffff",
"background_color": "#ffffff",
"display": "standalone"
}
8 changes: 6 additions & 2 deletions templates/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,12 @@

<link rel="canonical" href="{% block canonical_url %}{{ request.url }}{% endblock %}">

<link rel="shortcut icon" href="https://assets.ubuntu.com/v1/49a1a858-favicon-32x32.png" type="image/x-icon">
<link rel="apple-touch-icon" href="https://assets.ubuntu.com/v1/17b68252-apple-touch-icon-180x180-precomposed-ubuntu.png">
<link rel="apple-touch-icon" sizes="180x180" href="https://assets.ubuntu.com/v1/f38b9c7e-COF%20apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="https://assets.ubuntu.com/v1/be7e4cc6-COF-favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="https://assets.ubuntu.com/v1/16c27f81-COF%20favicon-16x16.png">
<link rel="manifest" href="{{ versioned_static('files/site.webmanifest') }}">
<!-- Serving favicon for search engines locally -->
<link rel="icon" type="image/png" sizes="48x48" href="{{ versioned_static('favicons/COF-favicon-48x48.png') }}">

{% block head_extra %}{% endblock %}

Expand Down

0 comments on commit 3ac4843

Please sign in to comment.