Skip to content

Commit

Permalink
💄 App >> Changing header title.
Browse files Browse the repository at this point in the history
  • Loading branch information
borsTiHD committed Jul 31, 2021
1 parent e5a7296 commit ecdbdbc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/client/nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ const PKG_FILE = path.join(PROJECT_ROOT, 'package.json')
// Package.json
const pkg = JSON.parse(fs.readFileSync(PKG_FILE)) // import pkg from '../../package.json'

// Webpage title
const headTitle = isDev ? `${pkg.productName.replace(' 🐱‍👤', '')} - DEV` : pkg.productName.replace(' 🐱‍👤', '')

// Alias
const alias = {
alias: {
Expand Down Expand Up @@ -87,7 +90,7 @@ export default {
// Global page headers: https://go.nuxtjs.dev/config-head
head: {
titleTemplate: '%s',
title: isDev ? `${pkg.productName} - DEV` : pkg.productName,
title: headTitle,
htmlAttrs: {
lang: 'en'
},
Expand Down

0 comments on commit ecdbdbc

Please sign in to comment.