forked from distrochooser/distrochooser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.js
145 lines (142 loc) · 4.17 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
let locales = ['de', 'en', 'fr', 'zh-cn']
let welcomeHeader = {
'de': 'Willkommen beim Distrochooser',
'en': 'Welcome to Distrochooser!',
'fr': 'Bienvenue!',
'zh-cn': '欢迎'
}
let descriptions = {
'de': 'Die Linux Auswahlhilfe hilft Anfängern und Umsteigern in der Menge von Linux-Distributionen die passende Linux-Distribution zu finden.',
'en': 'The Distrochooser helps you to find the suitable Linux distribution based on your needs!',
'fr': 'Le Distrochooser vous aide à trouver le linux distribution approprié en fonction de vos besoins',
'zh-cn': '您好!本问卷测试将帮助您选择最适合您使用的 Linux 发行版'
}
let longDescriptions = {
'de': descriptions['de'] + '<br> <br>Dabei musst Du lediglich einfache Fragen über Deine Anforderungen und Wünsche in unserer Linux-Auswahlhilfe beantworten. Anschließend ermitteln wir für Dich, welches Linux für Deine Anforderungen geeignet sein könnte.',
'en': descriptions['en'] + '<br> <br>You only have to answer our questions about your requirements for a Linux distribution. After you finished, we will calculate a list of Linux distributions which will fit your needs.',
'fr': descriptions['fr'],
'zh-cn': descriptions['zh-cn']
}
module.exports = {
/*
** Headers of the page
*/
globals: {
i18n: null,
distrochooser: null,
questions: null,
backend: 'https://waldorf.distrochooser.de/',
lang: locales[0],
distros: [],
useragent: null,
referrer: null,
dnt: false,
visitor: -1,
test: -1,
locales: locales,
descriptions: descriptions,
description: null,
mainInstance: null,
preloadInfos: null,
longDescriptions: longDescriptions,
welcomeHeader: welcomeHeader
},
modules: [
'@nuxtjs/sitemap'
],
sitemap: {
path: '/sitemap.xml',
hostname: 'https:/distrochooser.de',
cacheTime: 1000 * 60 * 15,
generate: true,
exclude: [
'/info/**'
],
routes: [
'/',
'/de/',
'/en/',
'/zh-cn/'
]
},
head: {
title: 'Distrochooser',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{
name: 'keywords',
content: 'Linux, Distrochooser, Linux Chooser, Linux Distribution Chooser, Linux Auswahlhilfe, Linux Auswahl, Alternative to Windows, Linux Comparison, Linux Vergleich, Vergleich, Auswahlhilfe, Alternative zu Windows'
},
{
name: 'theme-color',
content: '#158cba'
},
{
property: 'og:type',
content: 'website'
},
{
property: 'og:title',
content: 'Distrochooser'
},
{
property: 'og:url',
content: 'https://distrochooser.de'
},
{
property: 'og:image',
content: 'https://distrochooser.de/assets/tux.png'
},
{
property: 'og:image:type',
content: 'image/png'
},
{
property: 'og:image:width',
content: '500'
},
{
property: 'og:image:height',
content: '253'
},
{
name: 'twitter:card',
content: 'summary'
},
{
name: 'twitter:site',
content: '@distrochooser'
},
{
name: 'twitter:title',
content: 'Distrochooser'
},
{
name: 'twitter:image',
content: 'https://distrochooser.de/assets/tux.png'
},
{
name: 'google-site-verification',
content: 'nqtoKAtXX7xTNyddaEGkkYtgpc0pc0b-wigel0Acy5c'
},
{
name: 'msvalidate.01',
content: '8165DC81CC6E5D6805201B58C5596403'
},
{
name: 'generator',
content: 'LDC 2018'
}
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
{ rel: 'canonical', href: 'https://distrochooser.de/'},
{ rel: 'alternate', hreflang: 'de', href: 'https://distrochooser.de/'},
{ rel: 'alternate', hreflang: 'en', href: 'https://distrochooser.de/en'},
]
},
loading: { color: '#3B8070' },
plugins: ['~plugins/frontend.js'],
css: ['spectre.css/dist/spectre.min.css', 'spectre.css/dist/spectre-icons.min.css', 'spectre.css/dist/spectre-exp.min.css'],
}