forked from wooni005/exitwp-for-hugo
-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.yaml
62 lines (49 loc) · 1.87 KB
/
config.yaml
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
# Relative path to the top of the target blog. If images are downloaded, the
# URLs in the posts will be modified to point to blog_prefix/images/xxx.
blog_prefix: ""
# The directory where exitwp looks for wordpress export xml files.
wp_exports: wordpress-xml
# The target directory where all output is saved.
build_dir: build
# Output format: primary choices are html or markdown.
target_format: markdown
# The date format of the wikipedia export file.
# I'm not sure if this ever differs depending on wordpress localization.
# Wordpress is often so full of strange quirks so I wouldnt rule it out.
date_format: '%Y-%m-%d %H:%M:%S'
# Try to download and reloacate all images locally to the blog.
download_images: true
# Parent directory for item types
item_type_parent_path:
post: post
page: ""
# Item types we don't want to import.
item_type_filter: {attachment, nav_menu_item}
# exclude by filtering on any field type on the post.
# For example, you can exclude based on field "status" set to "draft"
# item_field_filter: {status: draft}
item_field_filter: {}
# Map wordpress item status to Hugo header content
item_field_map:
status:
# If status of an item is private, make the yaml header 'draft' to be True
private:
draft: True
wp_status: private # to distinguish from genuine drafts
taxonomies:
# Exclude taxonomies.
filter: {}
# Exclude taxonomies entries.
# entry_filter: {category: Uncategorized}
entry_filter: {}
# Rename taxonomies when writing jekyll output format.
name_mapping: {category: categories, post_tag: tags}
# Replace certain patterns in body
# Simply replace the key with its value
body_replace: {
# '<pre.*?lang="(.*?)".*?>': '\n{% codeblock \1 lang:\1 %}\n',
# '<pre.*?>': '\n{% codeblock %}\n',
# '</pre>': '\n{% endcodeblock %}\n',
# '[python]': '{% codeblock lang:python %}',
# '[/python]': '{% endcodeblock %}',
}