Skip to content

Commit 10570df

Browse files
authored
Merge pull request #1005 from XAMPPRocky/update-favicon
Update Favicon
2 parents 291b5e8 + 9cd52f2 commit 10570df

21 files changed

+16
-26
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.DS_Store
12
/target/
23
**/*.rs.bk
34
/node_modules

src/main.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -173,13 +173,6 @@ fn index() -> Template {
173173
render_index(ENGLISH.into())
174174
}
175175

176-
#[get("/favicon.ico", rank = 0)]
177-
fn favicon() -> Option<Cached<NamedFile>> {
178-
NamedFile::open("static/images/favicon.ico")
179-
.ok()
180-
.map(|file| file.cached(vec![CacheDirective::MaxAge(3600)]))
181-
}
182-
183176
#[get("/<locale>", rank = 3)]
184177
fn index_locale(locale: SupportedLocale) -> Template {
185178
render_index(locale.0)
@@ -493,7 +486,6 @@ fn main() {
493486
sponsors,
494487
subject,
495488
files,
496-
favicon,
497489
logos,
498490
components,
499491
index_locale,
17 Bytes
Loading
-604 Bytes
Loading

static/images/apple-touch-icon.png

-13 Bytes
Loading

static/images/browserconfig.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
<browserconfig>
33
<msapplication>
44
<tile>
5-
<square150x150logo src="/mstile-150x150.png"/>
6-
<TileColor>#00aba9</TileColor>
5+
<square150x150logo src="/static/images/mstile-150x150.png?v=ngJW8jGAmR"/>
6+
<TileColor>#ffffff</TileColor>
77
</tile>
88
</msapplication>
99
</browserconfig>

static/images/favicon-16x16.png

102 Bytes
Loading

static/images/favicon-32x32.png

-192 Bytes
Loading

static/images/favicon.ico

-7.95 KB
Binary file not shown.

static/images/goldberg.jpg

-145 KB
Binary file not shown.

static/images/mstile-144x144.png

-1.52 KB
Loading

static/images/mstile-150x150.png

-1.58 KB
Loading

static/images/mstile-310x150.png

-1.77 KB
Loading

static/images/mstile-310x310.png

-2.84 KB
Loading

static/images/mstile-70x70.png

-984 Bytes
Loading

static/images/rust-logo-purple.png

-30.5 KB
Binary file not shown.

static/images/rust-logo-purple2.png

-6.85 KB
Binary file not shown.

static/images/safari-pinned-tab.svg

Lines changed: 1 addition & 1 deletion
Loading

static/images/site.webmanifest

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,16 @@
33
"short_name": "",
44
"icons": [
55
{
6-
"src": "/android-chrome-192x192.png",
6+
"src": "/static/images/android-chrome-192x192.png?v=ngJW8jGAmR",
77
"sizes": "192x192",
88
"type": "image/png"
99
},
1010
{
11-
"src": "/android-chrome-512x512.png",
11+
"src": "/static/images/android-chrome-512x512.png?v=ngJW8jGAmR",
1212
"sizes": "512x512",
1313
"type": "image/png"
1414
}
1515
],
1616
"theme_color": "#ffffff",
17-
"background_color": "#ffffff",
18-
"display": "standalone"
17+
"background_color": "#ffffff"
1918
}

static/images/wordpress.png

-51.4 KB
Binary file not shown.

templates/components/layout.hbs

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,24 +27,22 @@
2727
<meta property="og:type" content="website" />
2828
<meta property="og:locale" content="en_US" />
2929

30-
<!-- Windows Shortcut Theme -->
31-
<meta name="msapplication-TileColor" content="#00aba9">
32-
<meta name="theme-color" content="#ffffff">
33-
34-
3530
<!-- styles -->
3631
<link rel="stylesheet" href="/static/styles/solarized-dark.css"/>
3732
<link rel="stylesheet" href="{{assets.css.vendor}}"/>
3833
<link rel="stylesheet" href="{{assets.css.fonts}}"/>
3934
<link rel="stylesheet" href="{{assets.css.app}}"/>
4035

4136
<!-- favicon -->
42-
<link rel="apple-touch-icon" sizes="180x180" href="/static/images/apple-touch-icon.png">
43-
<link rel="icon" type="image/png" sizes="32x32" href="/static/images/favicon-32x32.png">
44-
<link rel="icon" type="image/png" sizes="16x16" href="/static/images/favicon-16x16.png">
45-
<link rel="shortcut icon" href="/static/images/favicon.ico">
46-
<link rel="manifest" href="/static/images/site.webmanifest">
47-
<link rel="mask-icon" href="/static/images/safari-pinned-tab.svg" color="#5bbad5">
37+
<link rel="apple-touch-icon" sizes="180x180" href="/static/images/apple-touch-icon.png?v=ngJW8jGAmR">
38+
<link rel="icon" type="image/png" sizes="32x32" href="/static/images/favicon-32x32.png?v=ngJW8jGAmR">
39+
<link rel="icon" type="image/png" sizes="16x16" href="/static/images/favicon-16x16.png?v=ngJW8jGAmR">
40+
<link rel="manifest" href="/static/images/site.webmanifest?v=ngJW8jGAmR">
41+
<link rel="mask-icon" href="/static/images/safari-pinned-tab.svg?v=ngJW8jGAmR" color="#000000">
42+
<link rel="shortcut icon" href="/static/images/favicon.ico?v=ngJW8jGAmR">
43+
<meta name="msapplication-TileColor" content="#ffffff">
44+
<meta name="msapplication-config" content="/static/images/browserconfig.xml?v=ngJW8jGAmR">
45+
<meta name="theme-color" content="#ffffff">
4846

4947
{{#if is_landing}}
5048
<!-- locales -->

0 commit comments

Comments
 (0)