Skip to content

Commit 0c7df91

Browse files
Quantumplationrvcas
authored andcommitted
Switch back go SVG
Can't include binary files with the way we have things set up, so instead I just tried resizing the icon; I tested it locally by hosting the image somewhere temporarily, then replacing the favicon url on the live site, and that seemed to work.
1 parent 0a37beb commit 0c7df91

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

crates/aiken-project/src/docs.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,8 +327,8 @@ fn generate_static_assets(search_indexes: Vec<SearchIndex>) -> Vec<DocFile> {
327327
let mut assets: Vec<DocFile> = vec![];
328328

329329
assets.push(DocFile {
330-
path: PathBuf::from("favicon.png"),
331-
content: std::include_str!("../templates/favicon.png").to_string(),
330+
path: PathBuf::from("favicon.svg"),
331+
content: std::include_str!("../templates/favicon.svg").to_string(),
332332
});
333333

334334
assets.push(DocFile {

crates/aiken-project/templates/_layout.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<title>{{ page_title }}</title>
77
<meta name="theme-color" content="#eff1f5" media="(prefers-color-scheme: light)"/>
88
<meta name="theme-color" content="#1e1e2e" media="(prefers-color-scheme: dark)"/>
9-
<link rel="icon" type="image/png" sizes="any" href="{{ breadcrumbs }}/favicon.png"/>
9+
<link rel="icon" type="image/svg+xml" sizes="any" href="{{ breadcrumbs }}/favicon.svg"/>
1010
<link rel="stylesheet" href="{{ breadcrumbs }}/css/index.css?v={{ aiken_version }}" type="text/css"/>
1111
<link id="syntax-theme" rel="stylesheet" href="{{ breadcrumbs }}/css/atom-one-light.min.css?v={{ aiken_version }}"/>
1212
</head>
-6.51 KB
Binary file not shown.

crates/aiken-project/templates/favicon.svg

Lines changed: 3 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)