Skip to content

Commit

Permalink
Adding favicon to examples (withastro#1084)
Browse files Browse the repository at this point in the history
  • Loading branch information
RafidMuhymin committed Aug 16, 2021
1 parent 24a40be commit b03f1f7
Show file tree
Hide file tree
Showing 43 changed files with 158 additions and 9 deletions.
Binary file not shown.
4 changes: 4 additions & 0 deletions examples/blog-multiple-authors/src/components/MainHead.astro
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ const { title, description, image, type, next, prev, canonicalURL } = Astro.prop
<!-- RSS -->
<link rel="alternate" type="application/rss+xml" href="/feed/posts.xml">

<!-- Favicon -->
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<link rel="alternate icon" type="image/x-icon" href="/favicon.ico" />

<!-- SEO -->
<link rel="canonical" href={canonicalURL}>
{next && <link rel="next" aria-label="Previous Page" href={new URL(next, canonicalURL).href}>}
Expand Down
Binary file added examples/blog/public/favicon.ico
Binary file not shown.
1 change: 1 addition & 0 deletions examples/blog/src/components/BaseHead.astro
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const { title, description, permalink } = Astro.props;
<meta name="viewport" content="width=device-width" />

<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<link rel="alternate icon" type="image/x-icon" href="/favicon.ico" />

<!-- Primary Meta Tags -->
<title>{title}</title>
Expand Down
Binary file added examples/docs/public/favicon.ico
Binary file not shown.
8 changes: 3 additions & 5 deletions examples/docs/src/layouts/Main.astro
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,10 @@ const githubEditUrl = `https://github.com/USER/REPO/blob/main/${currentFile}`
<title>{content.title}</title>

<link rel="stylesheet" href="/index.css" />
<link rel="stylesheet" href="/theme.css" />
<link rel="stylesheet" href="/code.css" />
<script src="/theme.js" />
<link rel="icon"
type="image/svg+xml"
href="/favicon.svg">

<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<link rel="alternate icon" type="image/x-icon" href="/favicon.ico" />

<style>
body {
Expand Down
Binary file added examples/framework-lit/public/favicon.ico
Binary file not shown.
3 changes: 3 additions & 0 deletions examples/framework-lit/src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ import '../components/Counter.js';
<!doctype html>
<html lang="en">
<head>
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<link rel="alternate icon" type="image/x-icon" href="/favicon.ico" />

<title>Demo</title>
</head>
<body>
Expand Down
Binary file added examples/framework-multiple/public/favicon.ico
Binary file not shown.
11 changes: 11 additions & 0 deletions examples/framework-multiple/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.
4 changes: 4 additions & 0 deletions examples/framework-multiple/src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ import SvelteCounter from '../components/SvelteCounter.svelte';
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />

<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<link rel="alternate icon" type="image/x-icon" href="/favicon.ico" />

<style>
:global(:root) {
font-family: system-ui;
Expand Down
Binary file added examples/framework-preact/public/favicon.ico
Binary file not shown.
11 changes: 11 additions & 0 deletions examples/framework-preact/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.
4 changes: 4 additions & 0 deletions examples/framework-preact/src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ import Counter from '../components/Counter.jsx'
name="viewport"
content="width=device-width"
/>

<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<link rel="alternate icon" type="image/x-icon" href="/favicon.ico" />

<style>
:global(:root) {
font-family: system-ui;
Expand Down
Binary file added examples/framework-react/public/favicon.ico
Binary file not shown.
11 changes: 11 additions & 0 deletions examples/framework-react/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.
4 changes: 4 additions & 0 deletions examples/framework-react/src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ const someProps = {
name="viewport"
content="width=device-width"
/>

<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<link rel="alternate icon" type="image/x-icon" href="/favicon.ico" />

<style>
:global(:root) {
font-family: system-ui;
Expand Down
Binary file added examples/framework-solid/public/favicon.ico
Binary file not shown.
11 changes: 11 additions & 0 deletions examples/framework-solid/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.
4 changes: 4 additions & 0 deletions examples/framework-solid/src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ import Counter from '../components/Counter.tsx';
name="viewport"
content="width=device-width"
/>

<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<link rel="alternate icon" type="image/x-icon" href="/favicon.ico" />

<style>
:global(:root) {
font-family: system-ui;
Expand Down
Binary file added examples/framework-svelte/public/favicon.ico
Binary file not shown.
11 changes: 11 additions & 0 deletions examples/framework-svelte/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.
4 changes: 4 additions & 0 deletions examples/framework-svelte/src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ import Counter from '../components/Counter.svelte'
name="viewport"
content="width=device-width"
/>

<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<link rel="alternate icon" type="image/x-icon" href="/favicon.ico" />

<style>
:global(:root) {
font-family: system-ui;
Expand Down
Binary file added examples/framework-vue/public/favicon.ico
Binary file not shown.
11 changes: 11 additions & 0 deletions examples/framework-vue/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.
4 changes: 4 additions & 0 deletions examples/framework-vue/src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ import Counter from '../components/Counter.vue'
name="viewport"
content="width=device-width"
/>

<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<link rel="alternate icon" type="image/x-icon" href="/favicon.ico" />

<style>
:global(:root) {
font-family: system-ui;
Expand Down
Binary file added examples/portfolio/public/favicon.ico
Binary file not shown.
11 changes: 11 additions & 0 deletions examples/portfolio/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.
4 changes: 4 additions & 0 deletions examples/portfolio/src/components/MainHead.astro
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ const { title = 'Jeanine White: Personal Site' } = Astro.props;

<meta charset="UTF-8">
<title>{title}</title>

<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<link rel="alternate icon" type="image/x-icon" href="/favicon.ico" />

<link rel="stylesheet" type="text/css" href="/global.css">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@200;400;700;900&display=swap" rel="stylesheet">
2 changes: 1 addition & 1 deletion examples/snowpack/src/pages/tutorials/react.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ The `mount` configuration changes where Snowpack looks for and builds files. Eve
```diff
mount: {
- /* ... */
+ // directory name: 'build directory',
+ // directory name: 'build directory'
+ public: '/',
+ src: '/dist',
},
Expand Down
2 changes: 1 addition & 1 deletion examples/snowpack/src/pages/tutorials/svelte.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ The `mount` configuration changes where Snowpack scan for and builds files. Head

mount: {
- /* ... */
+ // directory name: 'build directory',
+ // directory name: 'build directory'
+ public: '/',
+ src: '/dist',
},
Expand Down
Binary file added examples/starter/public/favicon.ico
Binary file not shown.
5 changes: 4 additions & 1 deletion examples/starter/src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ let title = 'My Astro Site';
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
<title>{title}</title>
<link rel="icon" type="image/svg+xml" href="/favicon.svg">

<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<link rel="alternate icon" type="image/x-icon" href="/favicon.ico" />

<link rel="stylesheet" href="/style/global.css">
<link rel="stylesheet" href="/style/home.css">

Expand Down
Binary file not shown.
4 changes: 4 additions & 0 deletions examples/with-markdown-plugins/src/layouts/main.astro
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ const { content } = Astro.props;
<html lang={ content.lang || 'en' }>
<head>
<meta charset="utf-8" />

<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<link rel="alternate icon" type="image/x-icon" href="/favicon.ico" />

<title>{content.title}</title>
<link rel="stylesheet" href="/global.css" />
<style>
Expand Down
Binary file added examples/with-markdown/public/favicon.ico
Binary file not shown.
11 changes: 11 additions & 0 deletions examples/with-markdown/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.
4 changes: 4 additions & 0 deletions examples/with-markdown/src/layouts/main.astro
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ const { content } = Astro.props;
<html lang={ content.lang || 'en' }>
<head>
<meta charset="utf-8">

<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<link rel="alternate icon" type="image/x-icon" href="/favicon.ico" />

<title>{content.title}</title>
<link rel="stylesheet" href="/styles/global.css">
</head>
Expand Down
Binary file added examples/with-nanostores/public/favicon.ico
Binary file not shown.
3 changes: 2 additions & 1 deletion examples/with-nanostores/src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ import AdminsPreact from '../components/AdminsPreact.jsx';
<meta name="viewport" content="width=device-width">
<title>Astro</title>

<link rel="icon" type="image/svg+xml" href="/favicon.svg">
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<link rel="alternate icon" type="image/x-icon" href="/favicon.ico" />

<link rel="stylesheet" href="/style/global.css">
<link rel="stylesheet" href="/style/home.css">
Expand Down
Binary file added examples/with-tailwindcss/public/favicon.ico
Binary file not shown.
11 changes: 11 additions & 0 deletions examples/with-tailwindcss/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.
4 changes: 4 additions & 0 deletions examples/with-tailwindcss/src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ import Button from '../components/Button.astro';
<html lang="en">
<head>
<meta charset="UTF-8" />

<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<link rel="alternate icon" type="image/x-icon" href="/favicon.ico" />

<title>Astro + TailwindCSS</title>
<link rel="stylesheet" type="text/css" href="/global.css">
</head>
Expand Down

0 comments on commit b03f1f7

Please sign in to comment.