forked from jsliang/sublime-pelican
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Pelican.sublime-settings
80 lines (67 loc) · 2.63 KB
/
Pelican.sublime-settings
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
{
// ===============
// Slug generation
// ===============
// By default, slug is not automatically generated if a slug has been
// defined in the article.
// Set to `true` to force slug regeneration.
"force_slug_regeneration": false,
// Set to `"none"` to disable slug generation
// Set to `"title_change"` to generate slug when article title changes
// Note that when set to `"title_change"`, slug will be regenerated
// everytime you type in the title line, even if
// `force_slug_regeneration` is set to `false`.
// Set to `"save"` to generate slug on save
// If you want to force slug regeneration on each save, you have to set
// `force_slug_regeneration` to `true`.
// By default, slug is not automatically generated if a slug has been
// defined in the article. This is to prevent unwanted slug change.
"generate_slug_from_title": "save",
// ==============================
// Customizable metadata template
// ==============================
// Metadata template for Markdown & reStructuredText articles.
"article_metadata_template": {
// Metadata template for Markdown articles
"md":
[
"Title: %(title)s",
"Slug: %(slug)s",
"Date: %(date)s",
"Tags: %(tags)s",
"Category: %(category)s",
"Author: %(author)s",
"Lang: %(lang)s",
"Summary: %(summary)s"
],
// Metadata template for reStructuredText articles
"rst":
[
":title: %(title)s",
":slug: %(slug)s",
":date: %(date)s",
":tags: %(tags)s",
":category: %(category)s",
":author: %(author)s",
":lang: %(lang)s",
":summary: %(summary)s"
]
},
// =====================================
// File Path Filter for Pelican Articles
// =====================================
// To prevent automatic slug generation from annoyly affecting other
// Markdown/reStrcturedText files that are not Pelican articles,
// SublimePelican processes only the Markdown/reStructuredText files
// under `INPUTDIR` specified in the Makefile.
// When set to `false`, SublimePelican will use the regular expression
// defined in `filepath_filter` as the file path filter for Pelican
// articles.
"use_input_folder_in_makefile": true,
// File path filter for Pelican articles, written in a Python regular
// expression.
// Effective only if `use_input_folder_in_makefile` is set to `false`.
// By default, only Markdown/reStructuredText files under `content/`
// directory are deemed as Pelican article files.
"filepath_filter": "content/.*\\.(md|markdown|mkd|rst)$"
}