File tree Expand file tree Collapse file tree 4 files changed +35
-7
lines changed Expand file tree Collapse file tree 4 files changed +35
-7
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " example-site " : patch
3
+ ---
4
+
5
+ Add missing param options to ` <Visor /> ` in Layout
Original file line number Diff line number Diff line change 2
2
import {Visor } from ' @binz/visor' ;
3
3
import logoSvgSrc from ' ../images/Logo.svg' ;
4
4
5
+ const SITE_NAME = ' Example Site' ;
6
+
5
7
interface Props {
6
8
title: string ;
9
+ description: string ;
10
+ socialImagePath? : string ;
11
+ socialImageAltText? : string ;
12
+ keywords? : string [];
7
13
}
8
14
9
- const { title : pageTitle } = Astro .props ;
15
+ const {
16
+ title : pageTitle,
17
+ description,
18
+ socialImagePath : socialImage = ' /social.png' ,
19
+ socialImageAltText = pageTitle ,
20
+ keywords,
21
+ } = Astro .props ;
22
+
10
23
const canonicalUrl = Astro .url ;
24
+
25
+ const title = ` ${pageTitle } | ${SITE_NAME } ` ;
26
+
11
27
---
12
28
<!doctype html >
13
29
<html lang =" en" >
@@ -17,13 +33,20 @@ const canonicalUrl = Astro.url;
17
33
twitterHandle: " @joe_blogs"
18
34
}}
19
35
canonicalURL ={ canonicalUrl }
20
- description =" Built with visor"
21
- defaultKeywords ={ []}
36
+ description ={ description }
37
+ defaultKeywords ={ [ SITE_NAME , ' example' ]}
38
+ keywords ={ keywords }
22
39
siteName =" Example Site"
23
40
siteFaviconSvg ={ logoSvgSrc }
24
- socialImagePath =" /social.jpg"
25
- title ={ pageTitle }
26
- pwa
41
+ siteLocale =" en_US"
42
+ siteTwitterHandle =" @example_dot_com"
43
+ socialImagePath ={ socialImage }
44
+ socialImageAltText ={ socialImageAltText }
45
+ socialTwitterCardType =' summary_large_image'
46
+ siteThemeColour ={ ' #883aea' }
47
+ contentType =' website'
48
+ title ={ title }
49
+ pwa
27
50
/>
28
51
<body >
29
52
<slot />
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import Layout from '../layouts/Layout.astro';
3
3
import Card from ' ../components/Card.astro' ;
4
4
---
5
5
6
- <Layout title =" Welcome to Astro. " >
6
+ <Layout title =" Welcome to Visor. " description = ' Visor demo landing page ' >
7
7
<main >
8
8
<svg
9
9
class =" astro-a"
You can’t perform that action at this time.
0 commit comments