Update favicon naming conventions
Updated the favicon naming conventions in both the workflow file and README to use the full domain name instead of the second-level domain. This ensures unique filenames and preserves complete domain information.
This commit is contained in:
1 parent
2e9639457d
commit
2939d28e64
2 files changed
+8
-11
No files matched your search
@@ -137,7 +137,7 @@ jobs:
|
|||||||
error_count=$((error_count + 1))
|
error_count=$((error_count + 1))
|
||||||
echo "Warning: Generic favicon detected for domain: $domain (SHA-256: $file_hash)"
|
echo "Warning: Generic favicon detected for domain: $domain (SHA-256: $file_hash)"
|
||||||
else
|
else
|
||||||
# Valid favicon downloaded - use full domain as filename
|
# Valid favicon downloaded - use domain as filename
|
||||||
favicon_file="favicons/${domain}.png"
|
favicon_file="favicons/${domain}.png"
|
||||||
mv "$temp_favicon_file" "$favicon_file"
|
mv "$temp_favicon_file" "$favicon_file"
|
||||||
|
|
||||||
|
|||||||
@@ -14,10 +14,10 @@ This repository hosts a collection of favicon images for the world's most popula
|
|||||||
|
|
||||||
### Access Individual Favicons
|
### Access Individual Favicons
|
||||||
|
|
||||||
Individual favicons are stored in the `assets` branch and are named according to their second-level domain:
|
Individual favicons are stored in the `assets` branch and are named according to their domain name:
|
||||||
|
|
||||||
- `google.png` for google.com
|
- `google.com.png` for google.com
|
||||||
- `github.png` for github.com
|
- `github.com.png` for github.com
|
||||||
|
|
||||||
Access patterns:
|
Access patterns:
|
||||||
|
|
||||||
@@ -114,15 +114,12 @@ You can modify the run.yml file to change:
|
|||||||
|
|
||||||
### File Naming
|
### File Naming
|
||||||
|
|
||||||
Favicons are named based on the second-level domain:
|
Favicons are named using the domain name:
|
||||||
|
|
||||||
- `example.com` → `example.png`
|
- `example.com` → `example.com.png`
|
||||||
- `subdomain.example.com` → `example.png`
|
- `subdomain.example.com` → `subdomain.example.com.png`
|
||||||
|
|
||||||
When duplicate second-level domains exist, sequential numbers are added:
|
This ensures unique filenames for all domains and preserves the complete domain information.
|
||||||
|
|
||||||
- First `github.io` domain → `github.png`
|
|
||||||
- Second `github.io` domain → `github_1.png`
|
|
||||||
|
|
||||||
### Error Handling
|
### Error Handling
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user