Skip to content

Commit

Permalink
chore(seo): prerendering seo
Browse files Browse the repository at this point in the history
  • Loading branch information
Novout committed Mar 29, 2022
1 parent a1e0838 commit 485a8af
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion packages/better-write-app/public/robots.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
User-agent: *
Allow: /
Allow: /

Sitemap: https://www.betterwrite.io/sitemap.xml
4 changes: 2 additions & 2 deletions packages/better-write-app/src/use/start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export const useStart = () => {
name: 'twitter:description',
content: computed(() => t('seo.editor.description')),
},
{ name: 'twitter:image', content: '/logo_default.svg' },
{ name: 'twitter:image', content: env.getProdUrl() + '/logo.png' },
{
name: 'twitter:image:alt',
content: computed(() => t('seo.editor.alt')),
Expand All @@ -170,7 +170,7 @@ export const useStart = () => {
},
{ property: 'og:url', content: env.getProdUrl() },
{ property: 'og:type', content: 'website' },
{ property: 'og:image', content: 'logo_default.svg' },
{ property: 'og:image', content: env.getProdUrl() + '/logo.png' },
{
property: 'og:image:alt',
content: computed(() => t('seo.editor.alt')),
Expand Down

0 comments on commit 485a8af

Please sign in to comment.