Create partial for favicon

This commit is contained in:
Helen Chong 2024-06-12 17:23:51 +08:00
parent 362a56cb00
commit a95e559070
3 changed files with 6 additions and 10 deletions

View File

@ -24,12 +24,7 @@
<link href="{{'/assets/fonts/fontawesome/css/brands.css' | url | safe}}" rel="stylesheet" />
{# Favicon #}
{% block favicon %}
<link rel="apple-touch-icon" sizes="180x180" href="/assets/favicon/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/assets/favicon/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/assets/favicon/favicon-16x16.png">
<link rel="manifest" href="/assets/favicon/site.webmanifest">
{% endblock %}
{% block favicon %}{% include "global/favicon.njk" %}{% endblock %}
{# JavaScript #}
<script src="/assets/js/details-utils.js" defer></script>

View File

@ -0,0 +1,4 @@
<link rel="apple-touch-icon" sizes="180x180" href="/assets/favicon/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/assets/favicon/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/assets/favicon/favicon-16x16.png">
<link rel="manifest" href="/assets/favicon/site.webmanifest">

View File

@ -14,10 +14,7 @@
<link rel="stylesheet" href="{{'/assets/css/misc.css' | url | safe}}">
{# Favicon #}
<link rel="apple-touch-icon" sizes="180x180" href="/assets/favicon/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/assets/favicon/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/assets/favicon/favicon-16x16.png">
<link rel="manifest" href="/assets/favicon/site.webmanifest">
{% include "global/favicon.njk" %}
<title>{% if title %} {{ title }} | {% endif %} {{ sitemeta.siteName }}</title>
</head>