Skip to content

Commit d56eb6e

Browse files
committed
more comprehensive favicon options
1 parent 3b2c8c1 commit d56eb6e

File tree

9 files changed

+50
-11
lines changed

9 files changed

+50
-11
lines changed

astro.config.mjs

Lines changed: 46 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export default defineConfig({
88
site: 'https://graphrag.com',
99
integrations: [starlight({
1010
title: 'GraphRAG',
11+
favicon: '/favicon.ico',
1112
logo: {
1213
src: './src/assets/images/graphrag-logo.svg'
1314
},
@@ -19,16 +20,52 @@ export default defineConfig({
1920
baseUrl: 'https://github.com/graphrag/graphrag.github.io/edit/main/'
2021
},
2122
lastUpdated: true,
22-
head: [{
23-
tag: 'script',
24-
attrs: {
25-
async: true,
26-
src: 'https://www.googletagmanager.com/gtag/js?id=G-DL38Q8KGQC'
23+
head: [
24+
{
25+
tag: 'script',
26+
attrs: {
27+
async: true,
28+
src: 'https://www.googletagmanager.com/gtag/js?id=G-DL38Q8KGQC'
29+
}
30+
},
31+
{
32+
tag: 'link',
33+
attrs: {
34+
rel:"apple-touch-icon",
35+
sizes:"180x180",
36+
href:"/apple-touch-icon.png"
37+
}
38+
},
39+
{
40+
tag: 'link',
41+
attrs: {
42+
rel:"icon",
43+
type:"image/png",
44+
sizes:"32x32",
45+
href:"/favicon-32x32.png"
46+
}
47+
},
48+
{
49+
tag: 'link',
50+
attrs: {
51+
rel:"icon",
52+
type:"image/png",
53+
sizes:"16x16",
54+
href:"/favicon-16x16.png"
55+
},
56+
},
57+
{
58+
tag: 'link',
59+
attrs: {
60+
rel:"manifest",
61+
href:"/site.webmanifest"
62+
}
63+
},
64+
{
65+
tag: 'script',
66+
content: " window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-DL38Q8KGQC');"
2767
}
28-
}, {
29-
tag: 'script',
30-
content: " window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-DL38Q8KGQC');"
31-
}],
68+
],
3269
customCss: [
3370
// Path to your Tailwind base styles:
3471
'./src/tailwind.css',

public/android-chrome-192x192.png

12.2 KB
Loading

public/android-chrome-512x512.png

39.8 KB
Loading

public/apple-touch-icon.png

10.9 KB
Loading

public/favicon-16x16.png

764 Bytes
Loading

public/favicon-32x32.png

1.49 KB
Loading

public/favicon.ico

15 KB
Binary file not shown.

public/site.webmanifest

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"}

src/pages/appendices/research/[paper].astro

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
2+
import { Code } from 'astro:components';
23
3-
import { Effect, Either } from "effect"
4+
import { Effect, Either, ParseResult } from "effect"
45
import { FetchHttpClient } from "@effect/platform"
56
67
import { getArxivDetails } from '../../../lib/arxiv'
@@ -28,7 +29,7 @@ const fetchedEntry = await Effect.runPromise(fetchPaper)
2829
onLeft: (error) => (
2930
<div>
3031
<h1>Failed to fetch {arxivid}</h1>
31-
<pre>{error.message}</pre>
32+
<pre>{ParseResult.TreeFormatter.formatErrorSync(error)}</pre>
3233
</div>
3334
),
3435
onRight: (arxivEntry) => (<GrArxivPage arxiv={arxivEntry} />)

0 commit comments

Comments
 (0)