Skip to content

Commit 5b5a2a8

Browse files
authored
Merge pull request #2244 from k8s-infra-cherrypick-robot/cherry-pick-2236-to-release-0.14
[release-0.14] docs: customize favicon
2 parents 988fb0f + 7e4eb76 commit 5b5a2a8

File tree

8 files changed

+92
-0
lines changed

8 files changed

+92
-0
lines changed

docs/_includes/common/links.liquid

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{%- comment %} canonical link {% endcomment -%}
2+
{%- if prev -%}
3+
<link rel="prev" href="{{ prev.url | absolute_url }}">
4+
{%- endif -%}
5+
6+
{%- if next -%}
7+
<link rel="next" href="{{ next.url | absolute_url }}">
8+
{%- endif -%}
9+
10+
<link rel="canonical" href="{{ schema_surl }}">
11+
12+
{%- comment %} favicon icon {% endcomment -%}
13+
<link rel="icon" type="image/x-icon" href="{{ '/assets/images/nfd/favicon.ico' | relative_url }}">
14+
{%- comment %} alternate {% endcomment -%}
15+
<link rel="icon" type="image/svg+xml" href="{{ '/assets/images/nfd/favicon.svg' | relative_url }}">
16+
<link rel="icon" type="image/png" href="{{ 'assets/images/nfd/favicon-96x96.png' | relative_url }}" sizes="96x96">
17+
18+
{%- comment %} apple-touch-icon {% endcomment -%}
19+
<link rel="apple-touch-icon" href="{{ 'assets/images/nfd/apple-touch-icon.png' | relative_url }}">
20+
21+
{%- comment %} web manifest {% endcomment -%}
22+
<link rel="manifest" href="{{ 'assets/images/nfd/site.webmanifest' | relative_url }}">
3.72 KB
Loading
1.86 KB
Loading

docs/assets/images/nfd/favicon.ico

14.7 KB
Binary file not shown.

docs/assets/images/nfd/favicon.svg

Lines changed: 51 additions & 0 deletions
Loading
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"name": "NFD Documentation",
3+
"short_name": "NFD",
4+
"display": "standalone",
5+
"icons": [
6+
{
7+
"src": "/assets/images/nfd/web-app-manifest-192x192.png",
8+
"sizes": "192x192",
9+
"type": "image/png",
10+
"purpose": "maskable"
11+
},
12+
{
13+
"src": "/assets/images/nfd/web-app-manifest-512x512.png",
14+
"sizes": "512x512",
15+
"type": "image/png",
16+
"purpose": "maskable"
17+
}
18+
]
19+
}
3.69 KB
Loading
12.2 KB
Loading

0 commit comments

Comments
 (0)