@saiballo/eleventy-plugin-favicon-factory 1.0.4 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/favicon.js +4 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saiballo/eleventy-plugin-favicon-factory",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "A plugin for 11ty that creates favicons and a manifest",
5
5
  "main": "main.js",
6
6
  "keywords": [
package/src/favicon.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Created: 15/04/2024 (18:41:03)
6
6
  * Created by: Lorenzo Saibal Forti <lorenzo.forti@gmail.com>
7
7
  *
8
- * Last update: 24/04/2025 (15:35:49)
8
+ * Last update: 14/05/2025 (10:00:25)
9
9
  * Updated by: Lorenzo Saibal Forti <lorenzo.forti@gmail.com>
10
10
  *
11
11
  * Copyleft: 2024 - Tutti i diritti riservati
@@ -78,7 +78,7 @@ const getHtmlCode = (eleventyconfig, pluginconfig) => {
78
78
 
79
79
  const htmlCode = [
80
80
  // universal fallback
81
- `<link rel="shortcut icon" href="${filePath}/${pluginconfig.prefixName}.ico" type="image/x-icon"></link>`,
81
+ `<link rel="shortcut icon" href="${filePath}/${pluginconfig.prefixName}.ico" type="image/x-icon">`,
82
82
  // modern browsers
83
83
  `<link rel="icon" href="${filePath}/${pluginconfig.prefixName}.svg" type="image/svg+xml">`
84
84
  ];
@@ -96,7 +96,7 @@ const getHtmlCode = (eleventyconfig, pluginconfig) => {
96
96
 
97
97
  if (pluginconfig.sizeList.includes(512)) {
98
98
 
99
- htmlCode.push(`<link rel="apple-touch-icon" href="${filePath}/apple-touch-icon.png">`);
99
+ htmlCode.push(`<link rel="apple-touch-icon" href="${filePath}/${pluginconfig.prefixName}-512x512.png">`);
100
100
  }
101
101
 
102
102
  // apple icon
@@ -104,7 +104,7 @@ const getHtmlCode = (eleventyconfig, pluginconfig) => {
104
104
 
105
105
  if ([57, 72, 76, 114, 120, 144, 152, 180].includes(size)) {
106
106
 
107
- htmlCode.push(`<link rel="apple-touch-icon" sizes="${size}x${size}" href="${filePath}/apple-touch-icon-${size}x${size}.png">`);
107
+ htmlCode.push(`<link rel="apple-touch-icon" sizes="${size}x${size}" href="${filePath}/${pluginconfig.prefixName}-${size}x${size}.png">`);
108
108
  }
109
109
  });
110
110