Skip to content

Commit

Permalink
Use svg for web icon
Browse files Browse the repository at this point in the history
- favicon.ico is removed as currently it requires modifying nginx conf to do this
- Use favicon.svg (compressed) from hackergame-logo (without year), instead of providing png of different sizes
  • Loading branch information
taoky committed Oct 21, 2023
1 parent 12e9cb0 commit ff8e294
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 2 deletions.
Binary file removed frontend/static/favicon-16x16.png
Binary file not shown.
Binary file removed frontend/static/favicon-32x32.png
Binary file not shown.
Binary file removed frontend/static/favicon.ico
Binary file not shown.
32 changes: 32 additions & 0 deletions frontend/static/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 1 addition & 2 deletions frontend/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
<meta charset="UTF-8">
<!-- the width translates into minimum viewport width when initial scale is set -->
<meta name="viewport" content="width=1000, initial-scale=1">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="icon" type="image/svg+xml" href="{% static 'favicon.svg' %}">
<title>{% block title %}{{ page.title }}{% endblock %}</title>
<meta name="description" content="{% block description %}{{ page.description }}{% endblock %}">
<meta name="keywords" content="{% block keywords %}{{ page.keywords }}{% endblock %}">
Expand Down

0 comments on commit ff8e294

Please sign in to comment.