-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.js
72 lines (63 loc) · 1.36 KB
/
nuxt.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
import theme from '@jsilva-pt/nuxt-content-theme-blog'
import { footerLinks } from './blog.settings'
const baseUrl = 'https://mytechblog.io'
const publicRuntimeConfig = {
baseUrl,
githubOwner: 'jsilva-pt',
githubRepository: 'mytechblog.io',
githubMainBranch: 'main',
twitterUsername: 'jmanuelsilvapt',
linkedinUsername: 'jsilva-pt',
showSocialIconsOnHeader: true,
sharingBlogPostEnabled: true,
sharingDefaultHashtags: ['MyTechBlog'],
footerLinks
}
export default theme({
feedOptions: {
title: 'MyTechBlog',
description: 'Frontend development articles',
link: baseUrl,
},
publicRuntimeConfig,
titleTemplate: '%s — MyTechBlog',
pwa: {
manifest: {
short_name: 'MyTechBlog',
},
meta: {
author: 'José Silva',
theme_color: '#2C3E50',
ogHost: baseUrl,
twitterCard: 'summary_large_image',
twitterSite: 'jmanuelsilvapt',
twitterCreator: 'jmanuelsilvapt'
}
},
colorMode: {
preference: 'dark',
},
i18n: {
baseUrl,
locales: [
{
code: 'en',
iso: 'en-US',
name: 'English',
},
],
defaultLocale: 'en',
vueI18n: {
fallbackLocale: 'en',
messages: {
en: require('./i18n/en-US'),
},
},
},
modules: [
'@nuxtjs/google-gtag'
],
'google-gtag': {
id: process.env.NUXT_ENV_GA_ID,
},
})