@saiballo/eleventy-plugin-favicon-factory 1.0.3 → 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.
package/README.md CHANGED
@@ -107,6 +107,10 @@ In your template you can add a shortcut (the example below is for Nunjucks). The
107
107
  {% favicon "path/to/your/image/favicon.svg" %}
108
108
  ```
109
109
 
110
+ ## Note
111
+
112
+ If an error occurred or you want to regenerate all the icons, always remember to delete the destination folder "outputFolder" if it has already been created — otherwise, the icons will not be generated.
113
+
110
114
  ## Team ARMADA 429
111
115
  <img src="https://raw.githubusercontent.com/saiballo/saiballo/refs/heads/master/armada429.png" width="100" height="100">
112
116
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saiballo/eleventy-plugin-favicon-factory",
3
- "version": "1.0.3",
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