Skip to content
Merged
6 changes: 6 additions & 0 deletions src/asset_util/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,8 @@ pub enum ContentType {
PNG,
SVG,
WOFF2,
TXT,
XML,
}

impl ContentType {
Expand All @@ -375,6 +377,8 @@ impl ContentType {
ContentType::PNG => "image/png".to_string(),
ContentType::SVG => "image/svg+xml".to_string(),
ContentType::WOFF2 => "application/font-woff2".to_string(),
ContentType::TXT => "text/plain".to_string(),
ContentType::XML => "application/xml".to_string(),
}
}
}
Expand Down Expand Up @@ -505,6 +509,8 @@ fn content_type_and_encoding(asset_path: &Path) -> (ContentType, ContentEncoding
"svg" => ContentType::SVG,
"webp" => ContentType::WEBP,
"woff2" => ContentType::WOFF2,
"txt" => ContentType::TXT,
"xml" => ContentType::XML,
ext => panic!(
"Unknown asset type '{}' for asset '{}'",
ext,
Expand Down
47 changes: 32 additions & 15 deletions src/frontend/src/app.html
Original file line number Diff line number Diff line change
@@ -1,17 +1,34 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="shortcut icon" href="%sveltekit.assets%/favicon.ico" />
<title>Internet Identity</title>
<meta
name="viewport"
content="width=device-width, initial-scale=1, viewport-fit=cover"
/>
<link rel="canonical" href="https://identity.internetcomputer.org/" />
%sveltekit.head%
</head>
<body data-sveltekit-preload-data="hover">
<div style="display: contents">%sveltekit.body%</div>
</body>
</html>

<head>
<meta charset="utf-8" />
<link rel="shortcut icon" href="%sveltekit.assets%/favicon.ico" />
<title>Internet Identity</title>
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
<meta name="description"
content="Internet Identity is the authentication service on ICP enabling real privacy, with quick, safe and hassle-free sign-in" />
<meta name="robots" content="index, follow">
<meta name="keywords"
content="Internet Identity, Internet Computer, ICP, DFINITY, authentication, digital identity, blockchain identity, decentralized identity, Web3 authentication, passwordless login, biometric authentication, secure login, privacy-focused identity, decentralized authentication, blockchain security, Web3 identity, cryptographic identity" />
<meta property="og:title" content="Internet Identity" />
<meta property="og:description"
content="Internet Identity is the authentication service on ICP enabling real privacy, with quick, safe and hassle-free sign-in" />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://id.ai/" />
<!-- <meta property="og:image" content="" /> -->
<!-- <meta name="twitter:card" content="" /> -->
<meta name="twitter:title" content="Internet Identity" />
<meta name="twitter:description"
content="Internet Identity is the authentication service on ICP enabling real privacy, with quick, safe and hassle-free sign-in" />
<!-- <meta name="twitter:image" content="" /> -->
<meta name="twitter:creator" content="@dfinity" />
<link rel="canonical" href="https://id.ai/" />
%sveltekit.head%
</head>

<body data-sveltekit-preload-data="hover">
<div style="display: contents">%sveltekit.body%</div>
</body>

</html>
3 changes: 3 additions & 0 deletions src/frontend/static/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
User-agent: *
Allow: /
Sitemap: https://id.ai/sitemap.xml
Comment thread
aterga marked this conversation as resolved.
Outdated
20 changes: 20 additions & 0 deletions src/frontend/static/sitemap.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8" ?>
Comment thread
aterga marked this conversation as resolved.
<urlset
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:news="http://www.google.com/schemas/sitemap-news/0.9"
xmlns:xhtml="http://www.w3.org/1999/xhtml"
xmlns:image="http://www.google.com/schemas/sitemap-image/1.1"
xmlns:video="http://www.google.com/schemas/sitemap-video/1.1"
>
<url>
<loc>https://id.ai/</loc>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://id.ai/login/</loc>
<changefreq>weekly</changefreq>
<priority>0.7</priority>
</url>

</urlset>
Loading