-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathnuxt.config.js
98 lines (95 loc) · 2.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
93
94
95
96
97
98
//const pkg = require("./package");
const glob = require("glob");
const path = require("path");
let files = glob.sync("**/*.md", { cwd: "articles" });
function getSlugs(post, _) {
let slug = post.substr(0, post.lastIndexOf("."));
return `/blog/${slug}`;
}
module.exports = {
mode: "universal",
head: {
title: "Nicolò Rebughini",
titleTemplate: "%s - Nicolò Rebughini",
meta: [
{ charset: "utf-8" },
{ name: "viewport", content: "width=device-width, initial-scale=1" },
{
hid: "description",
name: "description",
content:
"I'm a sysadmin and a email deliverability tech. In my spare time I contribute to open source projects and develop apps to scratch my proverbial itches."
},
{
hid: "keywords",
name: "keywords",
content:
"vuejs, nuxt, sysadmin, backend, ansible, mongodb, docker, postfix, tailwindcss, tailwind, devops"
},
{ name: "robots", hid: "robots" , content: "index, follow" },
{ name: "twitter:card", content: "summary" },
{ name: "twitter:site", content: "@nirebu" },
{ name: "twitter:url", content: "https://nirebu.com" },
{ name: "twitter:description", content: "I'm a sysadmin and a email deliverability tech. In my spare time I contribute to open source projects and develop apps to scratch my proverbial itches." },
{ name: "og:url", content: "https://nirebu.com" },
{ name: "og:locale", content: "en_GB" },
{ name: "og:description", content: "I'm a sysadmin and a email deliverability tech. In my spare time I contribute to open source projects and develop apps to scratch my proverbial itches." },
{ name: "og:title", content: "Nicolò Rebughini - Devops" },
{ name: "og:type", content: "website" },
],
link: [{ rel: "icon", type: "image/x-icon", href: "/favicon.ico" }],
htmlAttrs: {
lang: "en-GB"
}
},
loading: false,
server: {
host: "0.0.0.0",
port: 3000
},
css: ["~assets/tailwind.scss"],
plugins: [],
modules: [
"@nuxtjs/google-analytics",
"@nuxtjs/moment",
[
"@nuxtjs/sitemap",
{
hostname: 'https://nirebu.com',
gzip: true,
}
],
[
"nuxt-fontawesome",
{
imports: [
{
set: "@fortawesome/free-brands-svg-icons",
icons: ["fab"]
}
]
}
]
],
googleAnalytics: {
id: "UA-133940660-1"
},
build: {
postcss: {
plugins: {
tailwindcss: path.resolve(__dirname, './tailwind.config.js')
}
},
extend(config, { isDev, isClient }) {
config.module.rules.push({
test: /\.md$/,
use: ["raw-loader"]
});
}
},
generate: {
routes: function() {
return files.map(getSlugs);
}
}
};