Skip to content

Commit 423d032

Browse files
committed
website: add favicons
1 parent e3f2ff2 commit 423d032

9 files changed

+93
-1
lines changed

website/README-DEVELOPER.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,7 @@ curl --verbose -i -X POST -H 'Content-Type: application/json; charset=utf-8' -d
3030
Connect with Google account.
3131

3232
- https://app.ahrefs.com/
33+
34+
## toolsaday.com
35+
36+
- https://toolsaday.com/seo/link-checker

website/docusaurus.config.ts

Lines changed: 51 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ logger.info(customFields);
8282
const config: Config = {
8383
title: 'xPack Binary Development Tools',
8484
tagline: 'Cross-platform binary tools for software development, aimed at reproducible builds',
85-
favicon: 'img/favicon.ico',
85+
// Explicitly set in headTags.
86+
// favicon: '/img/favicon.ico',
8687

8788
// Set the production url of your site here
8889
url: 'https://xpack-dev-tools.github.io',
@@ -210,9 +211,58 @@ const config: Config = {
210211
'./src/plugins/SelectReleasesPlugin',
211212
],
212213

214+
// https://docusaurus.io/docs/api/docusaurus-config#headTags
215+
headTags: [
216+
{
217+
tagName: 'link',
218+
attributes: {
219+
rel: 'icon',
220+
type: 'image/png',
221+
href: '/favicons/favicon-48x48.png',
222+
sizes: '48x48'
223+
}
224+
},
225+
{
226+
tagName: 'link',
227+
attributes: {
228+
rel: 'icon',
229+
type: 'image/svg+xml',
230+
href: '/favicons/favicon.svg'
231+
}
232+
},
233+
{
234+
tagName: 'link',
235+
attributes: {
236+
rel: 'shortcut icon',
237+
href: '/favicons/favicon.ico'
238+
}
239+
},
240+
{
241+
// This might also go to themeConfig.metadata.
242+
tagName: 'meta',
243+
attributes: {
244+
name: 'apple-mobile-web-app-title',
245+
content: 'xPack'
246+
}
247+
},
248+
{
249+
tagName: 'link',
250+
attributes: {
251+
rel: 'manifest',
252+
href: '/favicons/site.webmanifest'
253+
}
254+
}
255+
],
256+
// https://docusaurus.io/docs/seo
213257
themeConfig: {
214258
// Replace with your project's social card
215259
// image: 'img/docusaurus-social-card.jpg',
260+
metadata: [
261+
{
262+
name: 'keywords',
263+
content: 'xpack, binary, development, tools'
264+
}
265+
],
216266
navbar: {
217267
// overriden by i18n/en/docusaurus-theme-classic.
218268
title: 'The xPack Binary Development Tools',
24.7 KB
Loading
3.89 KB
Loading

website/static/favicons/favicon.ico

14.7 KB
Binary file not shown.

website/static/favicons/favicon.svg

Lines changed: 17 additions & 0 deletions
Loading
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"name": "xPack",
3+
"short_name": "xPack",
4+
"icons": [
5+
{
6+
"src": "/favicons/web-app-manifest-192x192.png",
7+
"sizes": "192x192",
8+
"type": "image/png",
9+
"purpose": "maskable"
10+
},
11+
{
12+
"src": "/favicons/web-app-manifest-512x512.png",
13+
"sizes": "512x512",
14+
"type": "image/png",
15+
"purpose": "maskable"
16+
}
17+
],
18+
"theme_color": "#ffffff",
19+
"background_color": "#ffffff",
20+
"display": "standalone"
21+
}
Loading
Loading

0 commit comments

Comments
 (0)