add favicon

pull/3/head
Lawrence Gibson 2024-02-13 10:15:40 +00:00
parent 5e1aa6dc79
commit bf13837abb
4 changed files with 26 additions and 23 deletions

View File

@ -1,25 +1,22 @@
{# page meta #}
<meta charset="utf-8">
<link rel="canonical" href="{{ site.url }}{{ page.url }}">
<meta name="description" content="{{ meta_description | truncate(140) if meta_description else content | striptags | truncate(140) }}">
<meta name="format-detection" content="telephone=no">
<meta name="robots" content="{{ robots if robots else 'index,follow' }}" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="{{ metadata.description }}">
<meta name="author" content="{{ metadata.author }}">
<meta name="HandheldFriendly" content="true"/>
{# page meta #}
<title>{{ title or metadata.title }}</title>
<meta charset="utf-8">
<title>{{ title or metadata.title }}</title>
{# include css #}
<link rel="stylesheet" href="../assets/css/main.css">
{# include javascript #}
<script src="assets/js/{{ 'main.js' if helpers.environment === 'development' else 'main.min.js' }}" defer></script>
<link rel="canonical" href="{{ site.url }}{{ page.url }}">
<meta name="description" content="{{ meta_description | truncate(140) if meta_description else content | striptags | truncate(140) }}">
<meta name="format-detection" content="telephone=no">
<meta name="robots" content="{{ robots if robots else 'index,follow' }}" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="{{ metadata.description }}">
<meta name="author" content="{{ metadata.author }}">
<meta name="HandheldFriendly" content="true"/>
{# include social meta tags #}
{# include favicon, fonts, etc #}
<link rel="icon" type="image/png" sizes="96x96" href="{{ '/img/favicon.png' | url }}">
<link rel="icon" type="image/svg+xml" href="{{ site.images.favicon_svg }}">
<link rel="icon" type="image/png" href="{{ site.images.favicon }}">
<link rel="apple-touch-icon" href="{{ site.images.apple_touch_icon }}" sizes="180x180">
<!-- endbuild -->
{# include css #}
<link rel="stylesheet" href="../assets/css/main.css">
{# include favicon, fonts, etc #}
<link rel="icon" type="image/svg+xml" href="/img/favicon.svg">
<link rel="icon" type="image/png" href="/img/favicon.png">
<link rel="apple-touch-icon" href="/img/apple-touch-icon.png" sizes="180x180">
<!-- endbuild -->

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

BIN
internal/img/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

6
internal/img/favicon.svg Executable file
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="640" height="640" version="1.1" viewBox="0 0 480 480" xmlns="http://www.w3.org/2000/svg">
<path d="m274.2 7.275c25.01-5.306 50.57-9.103 76.33-9.542-56.99 13.96-110.6 38.62-156.4 71.52-57.08 40.98-102.1 95.98-124 158.2-16.95 47.53-19.51 99.16-6.073 147.6 10.05 37.21 29.45 72.32 55.87 102.6-41.07-26.1-74.79-61.65-94.56-102.9-22.13-45.5-27.14-97.2-14.49-145.4 13.16-51.76 45.11-99.05 87.7-136.2 48.14-42.21 110-71.57 175.7-85.95z" fill="#535353" stroke-width="1.459"/>
<path d="m146.4 130.1h203.1c-0.1607 14.23-0.0644 28.46-0.0321 42.69-44.95 0.0237-89.9 0-134.9 0.0237 0.0643 15.63 0.1928 31.24-0.1284 46.87 40.03 0.0714 80.04-0.0239 120 0.0476-0.2892 14.16-0.2892 28.34 0 42.5-40 0.0238-80.04-0.0477-120 0.0238 0.4498 30.74 0 61.48 0.257 92.2-22.84 0-45.66 0.0238-68.5 0 0.3213-74.78 0.0643-149.6 0.1284-224.4z" fill="#535353" stroke-width="2.765"/>
<path d="m301.7 188.5c22.63-14.15 52.38-17.46 80.08-16.21 23.24 0.6176 45.91 6.242 66.65 14.69-5.881 12.72-11.48 25.52-17.16 38.31-22.67-9.681-48.9-14.42-74.28-10.65-7.163 1.118-15.02 3.205-19.03 8.596-5.515 7.644-3.643 18.66 5.271 24.09 13.45 8.763 30.71 11.7 46.28 17.01 20.11 6.81 41.78 13.45 56 27.66 13.23 13.07 16.38 30.98 14.96 47.45-1.323 15.54-10.11 30.81-25.42 40.31-19.17 12.12-44.06 15.62-67.67 16.49-33.54 1.118-68.15-3.021-98.01-16.22 5.881-12.75 11.15-25.65 16.85-38.46 17.22 6.827 35.65 12.07 54.89 12.94 15.83 0.6343 32.95 1.769 47.46-4.507 13.51-5.909 14.65-22.9 3.968-31.23-8.812-6.777-20.39-10.37-31.4-14.05-23.65-7.311-49.59-12.9-67.89-28.11-29.28-23.7-24.2-68.12 8.445-88.1z" fill="#e06438" stroke-width="1.843"/>
</svg>

After

Width:  |  Height:  |  Size: 1.6 KiB