Add favicon support with multiple sizes for different devices
This commit is contained in:
parent
a216576054
commit
2eab602ac4
BIN
res/favicon/android-chrome-192x192.png
Normal file
BIN
res/favicon/android-chrome-192x192.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 29 KiB |
BIN
res/favicon/android-chrome-512x512.png
Normal file
BIN
res/favicon/android-chrome-512x512.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 139 KiB |
BIN
res/favicon/apple-touch-icon.png
Normal file
BIN
res/favicon/apple-touch-icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 26 KiB |
BIN
res/favicon/favicon-16x16.png
Normal file
BIN
res/favicon/favicon-16x16.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 702 B |
BIN
res/favicon/favicon-32x32.png
Normal file
BIN
res/favicon/favicon-32x32.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.8 KiB |
BIN
res/favicon/favicon.ico
Normal file
BIN
res/favicon/favicon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 15 KiB |
@ -70,6 +70,7 @@ libdzonerzy-gen: libdzonerzy-dump
|
||||
@cp $(RAW_DIST)/main.js $(SITE_DIST)/main.js
|
||||
@cp $(RAW_DIST)/sitemap.xml $(SITE_DIST)/sitemap.xml
|
||||
@cp -r $(RAW_DIST)/embed/* $(SITE_DIST)/assets/
|
||||
@cp -r $(RES_DIR)/favicon/* $(SITE_DIST)/
|
||||
@cp $(DIST)/libdzonerzy.so $(SITE_DIST)/libdzonerzy.so
|
||||
@chmod -R 755 $(SITE_DIST)/*
|
||||
|
||||
|
||||
@ -680,6 +680,18 @@ Copyright:
|
||||
"}\\n"
|
||||
|
||||
#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_RAWTEXT("(function(){") \
|
||||
HTML_RAWTEXT("var t=localStorage.getItem('theme-preference');") \
|
||||
|
||||
Loading…
Reference in New Issue
Block a user