-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.js
92 lines (83 loc) · 3.78 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
let colors = require('./assets/colors.json')
let config = {
title: 'Daffodil Digital',
description: 'A social media marketing agency helping brands tell their stories in smarter ways',
url: 'https://www.daffodildigital.com',
image: '/share.jpg',
keywords: 'social media, digital marketing, public relations'
}
module.exports = {
/*
** Headers of the page
*/
head: {
title: config.title,
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'description', name: 'description', content: config.description },
{ hid: 'keywords', name: 'keywords', content: config.keywords },
{ name: "msapplication-TileColor", content: colors.energy },
{ name: "msapplication-TileImage", content: "/ico/mstile-144x144.png" },
{ name: "msapplication-config", content: "/ico/browserconfig.xml" },
{ name: "theme-color", content: colors.energy },
// Schema.org
{ hid: 'itemprop:name', itemprop: 'name', content: config.title },
{ hid: 'itemprop:description', itemprop: 'description', content: config.description },
{ hid: 'itemprop:image', itemprop: 'image', content: config.url + config.image },
// facebook
{ hid: 'og:type', property: 'og:type', content: 'website' },
{ hid: 'og:url', property: 'og:url', content: config.url },
{ hid: 'og:image', property: 'og:image', content: config.url + config.image },
{ hid: 'og:title', property: 'og:title', content: config.title },
{ hid: 'og:description', property: 'og:description', content: config.description },
// twitter
{ name: 'twitter:card', content: 'summary_large_image' },
{ name: 'twitter:image', content: config.url + config.image },
{ hid: 'twitter:title', name: 'twitter:title', content: config.title },
{ hid: 'twitter:description', name: 'twitter:description', content: config.description },
],
link: [
{ rel: 'stylesheet', href: 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css' },
{ rel: "apple-touch-icon", sizes: "57x57", href: "/ico/apple-touch-icon-57x57.png" },
{ rel: "apple-touch-icon", sizes: "60x60", href: "/ico/apple-touch-icon-60x60.png" },
{ rel: "apple-touch-icon", sizes: "72x72", href: "/ico/apple-touch-icon-72x72.png" },
{ rel: "apple-touch-icon", sizes: "76x76", href: "/ico/apple-touch-icon-76x76.png" },
{ rel: "apple-touch-icon", sizes: "114x114", href: "/ico/apple-touch-icon-114x114.png" },
{ rel: "apple-touch-icon", sizes: "120x120", href: "/ico/apple-touch-icon-120x120.png" },
{ rel: "apple-touch-icon", sizes: "144x144", href: "/ico/apple-touch-icon-144x144.png" },
{ rel: "apple-touch-icon", sizes: "152x152", href: "/ico/apple-touch-icon-152x152.png" },
{ rel: "apple-touch-icon", sizes: "180x180", href: "/ico/apple-touch-icon-180x180.png" },
{ rel: "icon", type: "image/png", href: "/ico/favicon-32x32.png", sizes: "32x32" },
{ rel: "icon", type: "image/png", href: "/ico/android-chrome-192x192.png", sizes: "192x192" },
{ rel: "icon", type: "image/png", href: "/ico/favicon-96x96.png", sizes: "96x96" },
{ rel: "icon", type: "image/png", href: "/ico/favicon-16x16.png", sizes: "16x16" },
{ rel: "manifest", href: "/ico/manifest.json" },
{ rel: "shortcut, icon", href: "/ico/favicon.ico" },
]
},
/*
** Customize the progress-bar color
*/
loading: { color: colors.energy },
/*
** Build configuration
*/
css: [{ src: '~assets/stylus/main.styl', lang: 'stylus' }],
plugins: [
{src: '~plugins/ga.js', ssr: false},
],
modules: [
'@nuxtjs/google-analytics'
],
'google-analytics': {
id: 'UA-107179718-1'
},
build: {
/*
** Run ESLINT on save
*/
extend (config, ctx) {
}
}
}