generated from HEIGE-PCloud/Notion-Hugo
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
notion-hugo.config.ts
47 lines (45 loc) · 1.83 KB
/
notion-hugo.config.ts
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
import { UserConfig } from "./src/config"
const userConfig: UserConfig = {
mount: {
manual: false,
page_url: 'https://nabilmh.notion.site/nabilmh-com-42a743fbe6e5429084e838dcd76a6a04?pvs=4',
pages: [
// {
// page_id: '<page_id>',
// target_folder: 'path/relative/to/content/folder'
// }
{
page_id: '34ab38113bf6443ba01530980c969288',
target_folder: '.'
}
],
databases: [
// {
// database_id: '<database_id>',
// target_folder: 'path/relative/to/content/folder'
// }
{
database_id: 'd067dccb08a647fc83f2201c494ea3fc',
target_folder: '.'
}
],
},
formatter: {
equation: {
// config how maths equations are rendered into markdown
// there are three options (markdown, shortcode, html)
// the markdown option renders the equations in default markdown flavor:
// \(inline equation\) \[displayed equation\]
// the shortcode option renders the equations into the math shortcode
// which relies on your Hugo theme to support and render the equations
// the html option directly renders equations into HTML + MathML
// when converting your Notion page into the markdown file,
// it makes the markdown file a lot less readable but it works for all themes.
// `markup.goldmark.renderer.unsafe` needs to be set to true for the HTML tags to work,
// which is the default setting.
// https://gohugo.io/getting-started/configuration-markup///configure-markup
style: 'html'
}
}
}
module.exports = userConfig