-
Notifications
You must be signed in to change notification settings - Fork 1
/
nuxtent.config.js
49 lines (48 loc) · 1.04 KB
/
nuxtent.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
const Prism = require('prismjs')
const externalLinks = require('markdown-it-link-attributes')
const emoji = require('markdown-it-emoji')
module.exports = {
parsers: {
md: {
extend(config) {
config.highlight = (code, lang) => {
return `<pre class="language-${lang}"><code class="language-${lang}">${Prism.highlight(code, Prism.languages[lang] || Prism.languages.markup)}</code></pre>`
}
},
plugins: [
emoji,
[ externalLinks, { target: '_blank', rel: 'noopener' } ]
]
}
},
content: [
[
'posts',
{
page: 'blog/_post',
permalink: ':year/:slug',
isPost: true,
generate: [
'get',
'getAll'
],
}
],
[
'infos',
{
page: 'info/_page',
permalink: ':slug',
isPost: false,
generate: [
'get',
'getAll'
],
}
]
],
api: {
baseURL: 'http://localhost:3000',
browserBaseURL: 'https://asksite.netlify.com'
}
}