Skip to content

Commit a7ae740

Browse files
committed
feat: add rust-industrial favicon
1 parent 0dc61ed commit a7ae740

4 files changed

Lines changed: 23 additions & 8 deletions

File tree

docs/public/favicon-256.png

22.3 KB
Loading

docs/public/favicon.ico

49.3 KB
Binary file not shown.

docs/public/favicon.svg

Lines changed: 15 additions & 8 deletions
Loading

docs/src/layouts/BaseLayout.astro

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ const {
1313
} = Astro.props;
1414
1515
const pageUrl = Astro.site ? new URL(Astro.url.pathname, Astro.site).href : `https://jonathanperis.github.io${Astro.url.pathname}`;
16+
const rawBaseUrl = import.meta.env.BASE_URL || '/';
17+
const baseUrl = rawBaseUrl.endsWith('/') ? rawBaseUrl : `${rawBaseUrl}/`;
18+
const faviconIco = `${baseUrl}favicon.ico`;
19+
const faviconSvg = `${baseUrl}favicon.svg`;
20+
const appleTouchIcon = `${baseUrl}favicon-256.png`;
1621
1722
const jsonLd = {
1823
'@context': 'https://schema.org',
@@ -40,6 +45,9 @@ const jsonLd = {
4045
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
4146
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap" rel="stylesheet" />
4247
<meta name="description" content={description} />
48+
<link rel="icon" href={faviconIco} sizes="any" />
49+
<link rel="icon" type="image/svg+xml" href={faviconSvg} />
50+
<link rel="apple-touch-icon" href={appleTouchIcon} />
4351
<meta name="keywords" content="Rust, Actix-web, SQLx, PostgreSQL, banking API, Rinha de Backend, performance, systems programming, Cargo, async" />
4452
<link rel="canonical" href={pageUrl} />
4553
<meta name="theme-color" content="#ce4a00" />

0 commit comments

Comments
 (0)