Skip to content

Commit

Permalink
Plugin-specific metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
kmturley committed Oct 7, 2022
1 parent 6cbfb27 commit a97b427
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion renderer/components/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ type LayoutProps = {
const Layout = ({ children }: LayoutProps) => (
<div className={styles.container}>
<Head>
<title>{siteTitle}</title>
<meta name="description" content={siteDesc} />
<meta property="og:image" content={`${getBasePath()}/images/creators-mobile.jpg`} />
<meta name="og:image" content={`${getBasePath()}/images/creators-mobile.jpg`} />
<meta name="og:title" content={siteTitle} />
<meta name="twitter:card" content="summary_large_image" />
<link
Expand Down
3 changes: 3 additions & 0 deletions renderer/pages/effects/[userId]/[repoId]/[pluginId].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,9 @@ class PluginPage extends Component<
<Layout>
<Head>
<title>{this.state.plugin.name || ''}</title>
<meta name="description" content={this.state.plugin.description || ''} />
<meta name="og:image" content={pluginFileUrl(this.state.plugin, 'image')} />
<meta name="og:title" content={this.state.plugin.name || ''} />
</Head>
<article>
<div className={styles.header}>
Expand Down
3 changes: 3 additions & 0 deletions renderer/pages/instruments/[userId]/[repoId]/[pluginId].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,9 @@ class PluginPage extends Component<
<Layout>
<Head>
<title>{this.state.plugin.name || ''}</title>
<meta name="description" content={this.state.plugin.description || ''} />
<meta name="og:image" content={pluginFileUrl(this.state.plugin, 'image')} />
<meta name="og:title" content={this.state.plugin.name || ''} />
</Head>
<article>
<div className={styles.header}>
Expand Down

0 comments on commit a97b427

Please sign in to comment.