Skip to content

Commit

Permalink
more comprehensive favicon options
Browse files Browse the repository at this point in the history
  • Loading branch information
akollegger committed Dec 3, 2024
1 parent 3b2c8c1 commit d56eb6e
Show file tree
Hide file tree
Showing 9 changed files with 50 additions and 11 deletions.
55 changes: 46 additions & 9 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export default defineConfig({
site: 'https://graphrag.com',
integrations: [starlight({
title: 'GraphRAG',
favicon: '/favicon.ico',
logo: {
src: './src/assets/images/graphrag-logo.svg'
},
Expand All @@ -19,16 +20,52 @@ export default defineConfig({
baseUrl: 'https://github.com/graphrag/graphrag.github.io/edit/main/'
},
lastUpdated: true,
head: [{
tag: 'script',
attrs: {
async: true,
src: 'https://www.googletagmanager.com/gtag/js?id=G-DL38Q8KGQC'
head: [
{
tag: 'script',
attrs: {
async: true,
src: 'https://www.googletagmanager.com/gtag/js?id=G-DL38Q8KGQC'
}
},
{
tag: 'link',
attrs: {
rel:"apple-touch-icon",
sizes:"180x180",
href:"/apple-touch-icon.png"
}
},
{
tag: 'link',
attrs: {
rel:"icon",
type:"image/png",
sizes:"32x32",
href:"/favicon-32x32.png"
}
},
{
tag: 'link',
attrs: {
rel:"icon",
type:"image/png",
sizes:"16x16",
href:"/favicon-16x16.png"
},
},
{
tag: 'link',
attrs: {
rel:"manifest",
href:"/site.webmanifest"
}
},
{
tag: 'script',
content: " window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-DL38Q8KGQC');"
}
}, {
tag: 'script',
content: " window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-DL38Q8KGQC');"
}],
],
customCss: [
// Path to your Tailwind base styles:
'./src/tailwind.css',
Expand Down
Binary file added public/android-chrome-192x192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/android-chrome-512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/favicon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/favicon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/favicon.ico
Binary file not shown.
1 change: 1 addition & 0 deletions public/site.webmanifest
Original file line number Diff line number Diff line change
@@ -0,0 +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"}
5 changes: 3 additions & 2 deletions src/pages/appendices/research/[paper].astro
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
import { Code } from 'astro:components';
import { Effect, Either } from "effect"
import { Effect, Either, ParseResult } from "effect"
import { FetchHttpClient } from "@effect/platform"
import { getArxivDetails } from '../../../lib/arxiv'
Expand Down Expand Up @@ -28,7 +29,7 @@ const fetchedEntry = await Effect.runPromise(fetchPaper)
onLeft: (error) => (
<div>
<h1>Failed to fetch {arxivid}</h1>
<pre>{error.message}</pre>
<pre>{ParseResult.TreeFormatter.formatErrorSync(error)}</pre>
</div>
),
onRight: (arxivEntry) => (<GrArxivPage arxiv={arxivEntry} />)
Expand Down

0 comments on commit d56eb6e

Please sign in to comment.