changeset 7097:faaefd08f790

add icons and config to satisfy http://realfavicongenerator.net/ Without this, on some paltforms, the favicon is not used correctly.
author domruf <dominikruf@gmail.com>
date Sun, 26 Mar 2017 16:54:40 +0200
parents f4dc6962f467
children 7f571544a0ea
files kallithea/config/routing.py kallithea/public/images/android-chrome-192x192.png kallithea/public/images/android-chrome-512x512.png kallithea/public/images/apple-touch-icon.png kallithea/public/images/browserconfig.xml kallithea/public/images/favicon-16x16.png kallithea/public/images/favicon-32x32.png kallithea/public/images/favicon.ico kallithea/public/images/favicon.png kallithea/public/images/manifest.json kallithea/public/images/mstile-144x144.png kallithea/public/images/mstile-150x150.png kallithea/public/images/mstile-310x150.png kallithea/public/images/mstile-310x310.png kallithea/public/images/mstile-70x70.png kallithea/public/images/safari-pinned-tab.svg kallithea/templates/base/root.html
diffstat 17 files changed, 80 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/config/routing.py	Mon Jul 31 19:42:41 2017 +0200
+++ b/kallithea/config/routing.py	Sun Mar 26 16:54:40 2017 +0200
@@ -97,6 +97,7 @@
     # MAIN PAGE
     rmap.connect('home', '/', controller='home', action='index')
     rmap.connect('about', '/about', controller='home', action='about')
+    rmap.redirect('/favicon.ico', '/images/favicon.ico')
     rmap.connect('repo_switcher_data', '/_repos', controller='home',
                  action='repo_switcher_data')
     rmap.connect('users_and_groups_data', '/_users_and_groups', controller='home',
Binary file kallithea/public/images/android-chrome-192x192.png has changed
Binary file kallithea/public/images/android-chrome-512x512.png has changed
Binary file kallithea/public/images/apple-touch-icon.png has changed
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/kallithea/public/images/browserconfig.xml	Sun Mar 26 16:54:40 2017 +0200
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<browserconfig>
+    <msapplication>
+        <tile>
+            <square150x150logo src="/images/mstile-150x150.png"/>
+            <TileColor>#da532c</TileColor>
+        </tile>
+    </msapplication>
+</browserconfig>
Binary file kallithea/public/images/favicon-16x16.png has changed
Binary file kallithea/public/images/favicon-32x32.png has changed
Binary file kallithea/public/images/favicon.ico has changed
Binary file kallithea/public/images/favicon.png has changed
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/kallithea/public/images/manifest.json	Sun Mar 26 16:54:40 2017 +0200
@@ -0,0 +1,18 @@
+{
+    "name": "Kallithea",
+    "icons": [
+        {
+            "src": "/images/android-chrome-192x192.png",
+            "sizes": "192x192",
+            "type": "image/png"
+        },
+        {
+            "src": "/images/android-chrome-512x512.png",
+            "sizes": "512x512",
+            "type": "image/png"
+        }
+    ],
+    "theme_color": "#ffffff",
+    "background_color": "#ffffff",
+    "display": "standalone"
+}
\ No newline at end of file
Binary file kallithea/public/images/mstile-144x144.png has changed
Binary file kallithea/public/images/mstile-150x150.png has changed
Binary file kallithea/public/images/mstile-310x150.png has changed
Binary file kallithea/public/images/mstile-310x310.png has changed
Binary file kallithea/public/images/mstile-70x70.png has changed
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/kallithea/public/images/safari-pinned-tab.svg	Sun Mar 26 16:54:40 2017 +0200
@@ -0,0 +1,44 @@
+<?xml version="1.0" standalone="no"?>
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
+ "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
+<svg version="1.0" xmlns="http://www.w3.org/2000/svg"
+ width="16.000000pt" height="16.000000pt" viewBox="0 0 16.000000 16.000000"
+ preserveAspectRatio="xMidYMid meet">
+<metadata>
+Created by potrace 1.11, written by Peter Selinger 2001-2013
+</metadata>
+<g transform="translate(0.000000,16.000000) scale(0.002286,-0.002286)"
+fill="#000000" stroke="none">
+<path d="M1800 6948 c-369 -33 -683 -232 -888 -560 -23 -38 -40 -68 -37 -68 3
+0 -1 -10 -9 -22 -26 -40 -67 -160 -88 -258 -23 -105 -32 -316 -17 -397 35
+-188 77 -306 156 -437 107 -178 284 -341 473 -436 81 -41 210 -86 273 -95 26
+-4 50 -11 52 -16 3 -4 7 -174 10 -376 2 -202 7 -595 10 -873 12 -1069 15
+-1227 19 -1263 7 -48 34 -109 83 -179 50 -73 74 -98 353 -368 128 -124 270
+-261 315 -305 45 -44 179 -174 298 -288 151 -147 223 -224 243 -260 15 -29 32
+-55 38 -59 8 -5 11 -110 12 -325 l1 -318 232 0 c127 0 231 2 232 5 1 9 8 959
+13 1960 3 538 10 980 15 1012 5 31 17 71 27 90 9 18 87 103 173 189 86 86 292
+295 457 465 166 170 359 368 429 439 160 165 209 229 226 297 17 74 17 160 -6
+1353 -2 116 -7 381 -11 590 -3 209 -7 409 -8 445 l-1 65 -235 1 -235 1 1 -46
+c1 -25 5 -302 8 -616 11 -945 16 -1273 20 -1424 5 -156 -1 -187 -55 -266 -28
+-41 -49 -63 -539 -565 -484 -495 -509 -521 -587 -614 -98 -117 -140 -182 -148
+-231 -3 -22 -6 -469 -6 -994 l0 -954 -32 29 c-17 16 -34 31 -37 34 -6 6 -121
+114 -319 300 -79 74 -156 146 -171 160 -14 14 -86 81 -160 150 -207 194 -216
+203 -239 247 -11 23 -23 57 -26 75 -3 18 -7 231 -10 473 -7 674 -16 1434 -20
+1695 -3 240 0 260 35 260 34 0 193 51 269 86 231 107 445 318 555 548 30 63
+73 184 81 226 3 14 7 36 10 50 30 139 24 364 -14 505 -97 370 -363 664 -721
+798 -57 21 -156 49 -185 52 -5 0 -35 4 -65 8 -91 12 -160 13 -250 5z m254
+-580 c106 -29 183 -74 262 -153 76 -75 114 -136 145 -229 25 -72 29 -101 30
+-187 0 -164 -58 -300 -183 -421 -116 -114 -258 -168 -424 -163 -317 11 -567
+267 -567 580 0 100 16 170 59 260 81 171 236 289 429 328 56 11 183 4 249 -15z"/>
+<path d="M5350 3192 c-271 -39 -523 -241 -612 -492 -14 -40 -20 -59 -35 -120
+-2 -8 -5 -61 -7 -116 -5 -141 25 -276 89 -390 34 -62 126 -175 168 -207 18
+-14 43 -35 57 -47 33 -29 173 -96 232 -110 l46 -12 0 -391 c-1 -365 -2 -396
+-20 -444 -22 -56 -18 -52 -418 -464 -135 -138 -261 -268 -280 -288 -69 -72
+-85 -66 187 -65 l246 0 95 100 c52 54 185 192 296 306 135 139 210 225 229
+260 50 97 55 147 56 573 0 215 0 399 0 410 1 15 14 25 49 37 106 38 241 141
+330 251 40 49 94 155 119 235 32 101 40 274 17 377 -66 293 -296 525 -580 586
+-57 12 -213 19 -264 11z m225 -471 c57 -25 128 -97 157 -158 34 -72 32 -189
+-5 -259 -58 -113 -183 -183 -303 -171 -236 24 -360 291 -223 481 84 119 245
+164 374 107z"/>
+</g>
+</svg>
--- a/kallithea/templates/base/root.html	Mon Jul 31 19:42:41 2017 +0200
+++ b/kallithea/templates/base/root.html	Sun Mar 26 16:54:40 2017 +0200
@@ -6,7 +6,14 @@
         <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
         <meta name="robots" content="index, nofollow"/>
         <meta name="viewport" content="width=device-width, initial-scale=1.0" />
-        <link rel="icon" href="${h.url('/images/favicon.ico')}" type="image/x-icon" />
+        <link rel="shortcut icon" href="${h.url('/images/favicon.ico')}" type="image/x-icon" />
+        <link rel="icon" type="image/png" href="${h.url('/images/favicon-32x32.png')}" sizes="32x32">
+        <link rel="icon" type="image/png" href="${h.url('/images/favicon-16x16.png')}" sizes="16x16">
+        <link rel="apple-touch-icon" sizes="180x180" href="${h.url('/images/apple-touch-icon.png')}">
+        <link rel="manifest" href="${h.url('/images/manifest.json')}">
+        <link rel="mask-icon" href="${h.url('/images/safari-pinned-tab.svg')}" color="#b1d579">
+        <meta name="msapplication-config" content="${h.url('/images/browserconfig.xml')}">
+        <meta name="theme-color" content="#ffffff">
 
         ## CSS ###
         <link rel="stylesheet" type="text/css" href="${h.url('/css/pygments.css', ver=c.kallithea_version)}"/>