Improve stuff for webmanifist/browserconfig/favicon and the templates and nginx settings

merge-requests/208/head
Thomas Lynch 4 years ago
parent 646cc551b7
commit 42f5a15ac7
  1. 28
      configs/nginx.example
  2. 28
      configs/nginx_no_https.example
  3. BIN
      gulp/res/icons/android-chrome-144x144.png
  4. BIN
      gulp/res/icons/apple-touch-icon.png
  5. BIN
      gulp/res/icons/favicon-16x16.png
  6. BIN
      gulp/res/icons/favicon-32x32.png
  7. BIN
      gulp/res/icons/favicon.ico
  8. BIN
      gulp/res/icons/mstile-150x150.png
  9. 42
      gulp/res/icons/safari-pinned-tab.svg
  10. 5
      gulp/res/icons/site.webmanifest
  11. 5
      views/includes/favicon.pug

@ -28,6 +28,20 @@ server {
return 200 "User-agent: *\nDisallow:\n";
}
location = /site.webmanifest {
access_log off;
expires max;
root /path/to/jschan/static/file;
try_files $uri =404;
}
location = /browserconfig.xml {
access_log off;
expires max;
root /path/to/jschan/static/file;
try_files $uri =404;
}
location = /favicon.ico {
access_log off;
expires max;
@ -192,6 +206,20 @@ server {
# return 200 "User-agent: *\nDisallow:\n";
# }
#
# location = /site.webmanifest {
# access_log off;
# expires max;
# root /path/to/jschan/static/file;
# try_files $uri =404;
# }
#
# location = /browserconfig.xml {
# access_log off;
# expires max;
# root /path/to/jschan/static/file;
# try_files $uri =404;
# }
#
# location = /favicon.ico {
# access_log off;
# expires max;

@ -28,6 +28,20 @@ server {
return 200 "User-agent: *\nDisallow:\n";
}
location = /site.webmanifest {
access_log off;
expires max;
root /path/to/jschan/static/file;
try_files $uri =404;
}
location = /browserconfig.xml {
access_log off;
expires max;
root /path/to/jschan/static/file;
try_files $uri =404;
}
location = /favicon.ico {
access_log off;
expires max;
@ -169,6 +183,20 @@ server {
# return 200 "User-agent: *\nDisallow:\n";
# }
#
# location = /site.webmanifest {
# access_log off;
# expires max;
# root /path/to/jschan/static/file;
# try_files $uri =404;
# }
#
# location = /browserconfig.xml {
# access_log off;
# expires max;
# root /path/to/jschan/static/file;
# try_files $uri =404;
# }
#
# location = /favicon.ico {
# access_log off;
# expires max;

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

@ -28,47 +28,7 @@ fill="#000000" stroke="none">
-5 110 -40 205 -109 297 l-46 62 71 34 c39 18 98 38 131 44 33 6 68 17 78 26
21 19 22 61 2 68 -8 4 -15 19 -15 35 0 18 -7 32 -20 39 -13 7 -20 21 -20 41 0
57 -31 51 -149 -26 -37 -25 -74 -45 -82 -45 -8 0 -37 -17 -64 -38 -43 -33 -56
-37 -91 -34 l-41 4 -13 71 c-46 259 -164 356 -345 282z m166 -25 c69 -36 125
-146 150 -293 12 -72 12 -83 -6 -135 -16 -45 -29 -63 -63 -87 -41 -28 -50 -30
-130 -29 -98 0 -133 13 -177 66 l-28 33 7 164 c5 130 11 174 26 208 10 24 20
43 22 43 2 0 30 11 63 25 73 30 85 30 136 5z m589 -201 c0 -14 -11 -25 -35
-35 -40 -16 -37 -39 4 -31 56 12 64 12 68 -1 3 -7 -11 -19 -32 -27 -45 -20
-36 -36 18 -33 54 4 59 -23 7 -33 -113 -22 -108 -22 -126 13 -9 18 -25 43 -36
55 l-20 22 53 34 c54 34 92 56 97 57 1 0 2 -9 2 -21z m-131 -166 c6 -12 11
-23 11 -26 0 -2 -23 -14 -52 -28 -38 -18 -52 -21 -56 -11 -2 7 -16 27 -30 43
-21 26 -23 33 -11 40 8 4 30 19 48 32 l35 24 21 -26 c12 -14 27 -36 34 -48z
m-1125 15 l57 -11 -7 -41 c-3 -23 -10 -48 -15 -57 -9 -17 -72 -39 -112 -39
-44 0 -40 19 8 33 48 14 62 30 29 35 -74 11 -80 21 -19 31 48 8 48 22 2 35
-22 6 -35 14 -31 19 10 10 21 9 88 -5z m200 -49 c31 -17 56 -34 56 -37 0 -4
-7 -16 -15 -26 -8 -11 -15 -28 -15 -39 0 -11 -5 -17 -12 -14 -7 2 -42 15 -76
27 -69 25 -71 29 -43 103 13 33 20 32 105 -14z m722 22 c18 -11 40 -31 50 -46
11 -15 40 -56 67 -91 26 -36 47 -67 47 -69 0 -6 -148 -61 -213 -79 -77 -22
-228 -35 -407 -36 -149 0 -217 11 -227 35 -2 8 1 47 7 86 14 82 45 125 97 135
29 6 34 3 43 -22 14 -36 46 -71 85 -92 23 -13 58 -17 146 -17 110 0 117 1 158
28 46 31 71 75 79 145 5 48 19 53 68 23z m-122 -369 c3 -5 8 -27 12 -49 l6
-41 -68 -11 c-134 -21 -128 -22 -140 29 l-11 45 91 16 c50 9 94 17 98 18 4 0
9 -3 12 -7z m457 -483 c50 -36 35 -49 -98 -89 -131 -40 -153 -39 -177 5 -6 11
-14 22 -18 25 -13 10 65 55 91 52 14 -1 49 4 76 12 70 20 93 19 126 -5z m-923
-39 c23 -22 32 -38 32 -61 l0 -32 -46 7 c-26 3 -84 6 -130 6 l-84 0 0 33 c0
56 15 66 105 70 44 1 82 4 85 5 3 1 20 -12 38 -28z"/>
<path d="M793 1344 c-9 -14 -19 -50 -21 -79 -4 -50 -2 -57 26 -85 22 -22 40
-30 65 -30 40 0 47 11 47 76 0 54 -20 95 -59 123 -37 26 -37 26 -58 -5z m55
-10 c42 -29 65 -108 46 -158 -11 -28 -59 -19 -88 15 -30 35 -33 73 -12 124 17
39 22 41 54 19z"/>
<path d="M847 1283 c-11 -10 -8 -61 4 -69 6 -3 18 1 27 9 13 13 13 21 4 42
-12 25 -23 31 -35 18z"/>
<path d="M600 1318 c-44 -72 -8 -178 61 -178 39 0 52 29 47 98 -4 48 -9 60
-39 84 -18 15 -37 28 -41 28 -5 0 -17 -15 -28 -32z m65 -11 c48 -41 44 -157
-4 -157 -28 0 -71 56 -71 91 0 33 25 89 40 89 5 0 21 -10 35 -23z"/>
<path d="M605 1267 c-8 -29 11 -70 28 -64 7 2 12 21 12 43 0 47 -30 62 -40 21z"/>
<path d="M831 1094 c-1 -26 -19 -34 -71 -34 -28 0 -42 6 -53 23 -9 12 -16 17
-16 10 -2 -25 31 -43 77 -43 58 0 75 10 69 41 -4 22 -4 22 -6 3z"/>
<path d="M891 1022 c-29 -20 -188 -22 -233 -4 -16 7 -28 7 -28 3 0 -10 23 -15
103 -26 59 -8 150 3 174 20 27 20 12 25 -16 7z"/>
<path d="M634 962 c19 -31 195 -40 260 -13 44 18 25 23 -24 6 -62 -22 -130
-19 -219 10 -15 5 -21 4 -17 -3z"/>
<path d="M850 643 c-60 -9 -70 -14 -70 -33 0 -28 10 -30 83 -18 61 10 67 13
67 34 0 25 -14 28 -80 17z"/>
-37 -91 -34 l-41 4 -13 71 c-46 259 -164 356 -345 282z"/>
<path d="M396 1147 c-28 -21 -18 -61 17 -65 27 -3 28 -2 25 34 -3 42 -15 51
-42 31z"/>
</g>

Before

Width:  |  Height:  |  Size: 4.7 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

@ -8,6 +8,7 @@
"type": "image/png"
}
],
"theme_color": "",
"background_color": ""
"theme_color": "#ffffff",
"background_color": "#ffffff",
"display": "standalone"
}

@ -1,5 +1,8 @@
link(rel='shortcut icon' href='/favicon.ico' type='image/x-icon')
link(rel='apple-touch-icon' sizes='144x144' href='/file/apple-touch-icon.png')
link(rel='manifest' href='/site.webmanifest')
link(rel='apple-touch-icon' sizes='144x144' href='/file/apple-touch-icon.png')
link(rel='icon' type='image/png' sizes='32x32' href='/file/favicon-32x32.png')
link(rel='icon' type='image/png' sizes='16x16' href='/file/favicon-16x16.png')
link(rel='mask-icon' href='/file/safari-pinned-tab.svg' color='#5bbad5')
meta(name='msapplication-TileColor' content='#00aba9')
meta(name='theme-color' content='#ffffff')

Loading…
Cancel
Save