Skip to content

Commit

Permalink
Add favicon to site using the vscode extension launch icon
Browse files Browse the repository at this point in the history
  • Loading branch information
nstrayer committed Oct 16, 2023
1 parent 864a69f commit 525c50d
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 7 deletions.
20 changes: 17 additions & 3 deletions inst/website/public/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion inst/website/src/layouts/ArticleLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,15 @@ type Props = MarkdownLayoutProps<{
const { frontmatter, url } = Astro.props;
import "@/styles/globals.css";
import { internalLink } from "@/lib/utils";
---

<html>
<head>
<meta charset="UTF-8" />
<meta name="description" content="ShinyUiEditor Article" />
<meta name="viewport" content="width=device-width" />
<!-- <link rel="icon" type="image/svg+xml" href="/favicon.svg" /> -->
<link rel="icon" type="image/svg+xml" href={internalLink("favicon.svg")} />
<meta name="generator" content={Astro.generator} />
<title>{`SUE | ${frontmatter.title}`}</title>
</head>
Expand Down
5 changes: 3 additions & 2 deletions inst/website/src/layouts/FullPageLayout.astro
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
---import { internalLink } from '@/lib/utils';

interface Props {
title: string;
}
Expand All @@ -12,7 +13,7 @@ const { title } = Astro.props;
<meta charset="UTF-8" />
<meta name="description" content="Landing page for the ShinyUiEditor: A drag and drop interface for building Shiny apps." />
<meta name="viewport" content="width=device-width" />
<!-- <link rel="icon" type="image/svg+xml" href="/favicon.svg" /> -->
<link rel="icon" type="image/svg+xml" href={internalLink("favicon.svg")} />
<meta name="generator" content={Astro.generator} />
<title>{title}</title>
</head>
Expand Down
5 changes: 4 additions & 1 deletion inst/website/src/layouts/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ interface Props {
}
const { title } = Astro.props;
import { internalLink } from "@/lib/utils";
---

<!doctype html>
Expand All @@ -12,7 +15,7 @@ const { title } = Astro.props;
<meta charset="UTF-8" />
<meta name="description" content="Landing page for the ShinyUiEditor: A drag and drop interface for building Shiny apps." />
<meta name="viewport" content="width=device-width" />
<!-- <link rel="icon" type="image/svg+xml" href="/favicon.svg" /> -->
<link rel="icon" type="image/svg+xml" href={internalLink("favicon.svg")} />
<meta name="generator" content={Astro.generator} />
<title>{title}</title>
</head>
Expand Down

0 comments on commit 525c50d

Please sign in to comment.