Add favicon support with multiple sizes for different devices

This commit is contained in:
Daniele Linguaglossa 2026-01-21 21:33:07 +01:00
parent a216576054
commit 2eab602ac4
8 changed files with 13 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 139 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 702 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

BIN
res/favicon/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

View File

@ -70,6 +70,7 @@ libdzonerzy-gen: libdzonerzy-dump
@cp $(RAW_DIST)/main.js $(SITE_DIST)/main.js @cp $(RAW_DIST)/main.js $(SITE_DIST)/main.js
@cp $(RAW_DIST)/sitemap.xml $(SITE_DIST)/sitemap.xml @cp $(RAW_DIST)/sitemap.xml $(SITE_DIST)/sitemap.xml
@cp -r $(RAW_DIST)/embed/* $(SITE_DIST)/assets/ @cp -r $(RAW_DIST)/embed/* $(SITE_DIST)/assets/
@cp -r $(RES_DIR)/favicon/* $(SITE_DIST)/
@cp $(DIST)/libdzonerzy.so $(SITE_DIST)/libdzonerzy.so @cp $(DIST)/libdzonerzy.so $(SITE_DIST)/libdzonerzy.so
@chmod -R 755 $(SITE_DIST)/* @chmod -R 755 $(SITE_DIST)/*

View File

@ -680,6 +680,18 @@ Copyright:
"}\\n" "}\\n"
#define HEAD_HTML \ #define HEAD_HTML \
HTML_RAWTEXT("<link rel=\"icon\" type=\"image/x-icon\" href=\"/favicon.ico\">") \
HTML_NEWLINE() \
HTML_RAWTEXT("<link rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/favicon-16x16.png\">") \
HTML_NEWLINE() \
HTML_RAWTEXT("<link rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/favicon-32x32.png\">") \
HTML_NEWLINE() \
HTML_RAWTEXT("<link rel=\"apple-touch-icon\" sizes=\"180x180\" href=\"/apple-touch-icon.png\">") \
HTML_NEWLINE() \
HTML_RAWTEXT("<link rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/android-chrome-192x192.png\">") \
HTML_NEWLINE() \
HTML_RAWTEXT("<link rel=\"icon\" type=\"image/png\" sizes=\"512x512\" href=\"/android-chrome-512x512.png\">") \
HTML_NEWLINE() \
HTML_TAG_OPEN("script", "") \ HTML_TAG_OPEN("script", "") \
HTML_RAWTEXT("(function(){") \ HTML_RAWTEXT("(function(){") \
HTML_RAWTEXT("var t=localStorage.getItem('theme-preference');") \ HTML_RAWTEXT("var t=localStorage.getItem('theme-preference');") \