Browse Source

Add custom icon

master
Gerben 4 years ago
parent
commit
c73da85538
4 changed files with 36 additions and 4 deletions
  1. BIN
      public/img/favicon.png
  2. +34
    -0
      public/img/favicon.svg
  3. BIN
      public/img/gitea-sm.png
  4. +2
    -4
      templates/base/head.tmpl

BIN
public/img/favicon.png View File

Before After
Width: 256  |  Height: 256  |  Size: 4.5 KiB

+ 34
- 0
public/img/favicon.svg View File

@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xml:space="preserve"
enable-background="new 0 0 97 97"
viewBox="0 0 97 97"
height="97px"
width="97px"
y="0px"
x="0px"
version="1.1">
<metadata>
<rdf:RDF>
<cc:Work rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:source>
<cc:Work rdf:about="https://commons.wikimedia.org/wiki/File:Git_icon.svg">
<dc:creator>Jason Long</dc:creator>
</cc:Work>
</dc:source>
</cc:Work>
</rdf:RDF>
</metadata>
<g>
<path
style="opacity:1;fill:#000000"
d="m 92.71,44.408 -40.119,-40.117 c -2.31,-2.311 -6.057,-2.311 -8.369,0 l -8.33,8.332 10.567,10.567 c 2.456,-0.83 5.272,-0.273 7.229,1.685 1.969,1.97 2.521,4.81 1.67,7.275 l 10.186,10.185 c 2.465,-0.85 5.307,-0.3 7.275,1.671 2.75,2.75 2.75,7.206 0,9.958 -2.752,2.751 -7.208,2.751 -9.961,0 -2.068,-2.07 -2.58,-5.11 -1.531,-7.658 l -9.5,-9.499 v 17.892564 l 11.571153,3.554142 c 5.851269,1.797249 -3.61849,27.30956 -7.977071,25.970798 l -22.887523,-7.030026 c -5.051089,-1.551469 2.932776,-27.520181 7.977072,-25.970798 l 5.527369,1.697761 v -16.552441 c -0.84,-0.344 -1.625,-0.853 -2.307,-1.537 -2.083,-2.082 -2.584,-5.14 -1.516,-7.698 l -10.417,-10.419 -27.51,27.507 c -2.311,2.313 -2.311,6.06 0,8.371 l 40.121,40.118 c 2.31,2.311 6.056,2.311 8.369,0 l 39.932,-39.932 c 2.311,-2.311 2.311,-6.06 0,-8.371 z" />
</g>
</svg>

BIN
public/img/gitea-sm.png View File

Before After
Width: 120  |  Height: 120  |  Size: 1.9 KiB

+ 2
- 4
templates/base/head.tmpl View File

@@ -5,7 +5,6 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>{{if .Repository.Name}}{{.Repository.Name}}{{else}}{{if .Title}}{{.Title}} — {{end}}{{AppName}}{{end}}</title>
<link rel="manifest" href="{{AppSubUrl}}/manifest.json" crossorigin="use-credentials">
{{if UseServiceWorker}}
<script>
if ('serviceWorker' in navigator) {
@@ -95,9 +94,8 @@
heatmapUser: {{if .HeatmapUser}}'{{.HeatmapUser}}'{{else}}null{{end}},
};
</script>
<link rel="shortcut icon" href="{{StaticUrlPrefix}}/img/favicon.png" />
<link rel="mask-icon" href="{{StaticUrlPrefix}}/img/gitea-safari.svg" color="#609926">
<link rel="fluid-icon" href="{{StaticUrlPrefix}}/img/gitea-lg.png" title="{{AppName}}">
<link rel="shortcut icon" type="image/png" href="{{StaticUrlPrefix}}/img/favicon.png" />
<link rel="shortcut icon" type="image/svg" href="{{StaticUrlPrefix}}/img/favicon.svg" />
<link rel="stylesheet" href="{{StaticUrlPrefix}}/vendor/assets/font-awesome/css/font-awesome.min.css">
<link rel="preload" as="font" href="{{StaticUrlPrefix}}/fomantic/themes/default/assets/fonts/icons.woff2" type="font/woff2" crossorigin="anonymous">
<link rel="preload" as="font" href="{{StaticUrlPrefix}}/fomantic/themes/default/assets/fonts/outline-icons.woff2" type="font/woff2" crossorigin="anonymous">


Loading…
Cancel
Save