feat: add custom favicon from favicon.io
|
@ -17,7 +17,11 @@ $this->registerMetaTag(['charset' => Yii::$app->charset], 'charset');
|
||||||
$this->registerMetaTag(['name' => 'viewport', 'content' => 'width=device-width, initial-scale=1, shrink-to-fit=no']);
|
$this->registerMetaTag(['name' => 'viewport', 'content' => 'width=device-width, initial-scale=1, shrink-to-fit=no']);
|
||||||
$this->registerMetaTag(['name' => 'description', 'content' => $this->params['meta_description'] ?? '']);
|
$this->registerMetaTag(['name' => 'description', 'content' => $this->params['meta_description'] ?? '']);
|
||||||
$this->registerMetaTag(['name' => 'keywords', 'content' => $this->params['meta_keywords'] ?? '']);
|
$this->registerMetaTag(['name' => 'keywords', 'content' => $this->params['meta_keywords'] ?? '']);
|
||||||
$this->registerLinkTag(['rel' => 'icon', 'type' => 'image/x-icon', 'href' => Yii::getAlias('@web/favicon.ico')]);
|
$this->registerLinkTag(['rel' => 'icon', 'type' => 'image/svg', 'href' => Yii::getAlias('@web/favicon.ico')]);
|
||||||
|
$this->registerLinkTag(['rel' => 'apple-touch-icon', 'sizes' => '180x180', 'type' => 'image/png', 'href' => Yii::getAlias('@web/apple-touch-icon.png')]);
|
||||||
|
$this->registerLinkTag(['rel' => 'apple-touch-icon', 'sizes' => '32x32', 'type' => 'image/png', 'href' => Yii::getAlias('@web/favicon-32x32.png')]);
|
||||||
|
$this->registerLinkTag(['rel' => 'apple-touch-icon', 'sizes' => '16x16', 'type' => 'image/png', 'href' => Yii::getAlias('@web/favicon-16x16.png')]);
|
||||||
|
$this->registerLinkTag(['rel' => 'manifest', 'href' => Yii::getAlias('@web/site.webmanifest')]);
|
||||||
?>
|
?>
|
||||||
<?php $this->beginPage() ?>
|
<?php $this->beginPage() ?>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
|
|
After Width: | Height: | Size: 12 KiB |
After Width: | Height: | Size: 43 KiB |
After Width: | Height: | Size: 10 KiB |
After Width: | Height: | Size: 444 B |
After Width: | Height: | Size: 1.1 KiB |
BIN
web/favicon.ico
Before Width: | Height: | Size: 318 B After Width: | Height: | Size: 15 KiB |
|
@ -0,0 +1 @@
|
||||||
|
{"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"}
|