Skip to content

Commit

Permalink
Sync with giraffeql-boilerplate c53ab4d
Browse files Browse the repository at this point in the history
  • Loading branch information
big213 committed Feb 24, 2022
1 parent d0f596c commit b64626c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
8 changes: 3 additions & 5 deletions frontend/components/page/crudRecordPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,9 @@ export default {
},
head() {
return (
this.head ?? {
title: 'Manage ' + this.recordInfo.pluralName,
}
)
return {
title: this.title ?? 'Manage ' + this.recordInfo.pluralName,
}
},
}
</script>
13 changes: 10 additions & 3 deletions frontend/nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,8 @@ export default {
// Global page headers (https://go.nuxtjs.dev/config-head)
head: {
titleTemplate: (titleChunk) => {
return titleChunk
? `${titleChunk} - ${process.env.siteName}`
: process.env.siteName
const siteName = process.env.SITE_NAME || process.env.siteName
return titleChunk ? `${titleChunk} - ${siteName}` : siteName
},
meta: [
{ charset: 'utf-8' },
Expand All @@ -36,6 +35,14 @@ export default {
name: 'description',
content: process.env.SITE_DESCRIPTION,
},
{
property: 'og:title',
content: process.env.SITE_NAME,
},
{
property: 'og:description',
content: process.env.SITE_DESCRIPTION,
},
{
property: 'og:image',
content: process.env.SITE_IMAGE_URL,
Expand Down

0 comments on commit b64626c

Please sign in to comment.