File tree Expand file tree Collapse file tree 3 files changed +21
-0
lines changed Expand file tree Collapse file tree 3 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,13 @@ KTOOLBOX_JOB__POST_STRUCTURE__ATTACHMENTS=./
18
18
# Rename attachments in numerical order, e.g. `1.png`, `2.png`, ...
19
19
KTOOLBOX_JOB__SEQUENTIAL_FILENAME=True
20
20
21
+ # Customize the filename format by inserting an empty `{}` to represent the basic filename.
22
+ # Similar to `post_dirname_format`, you can use some of the properties in `Post`.
23
+ # For example: `{title}_{}` > `HelloWorld_b4b41de2-8736-480d-b5c3-ebf0d917561b`, etc.
24
+ # You can also use it with `sequential_filename`. For instance,
25
+ # `[{published}]_{}` > `[2024-1-1]_1.png`, `[2024-1-1]_2.png`, etc.
26
+ KTOOLBOX_JOB__FILENAME_FORMAT=[{published}]_{}
27
+
21
28
# Prefix the post directory name with its release/publish date, e.g. `[2024-1-1]HelloWorld`
22
29
KTOOLBOX_JOB__POST_DIRNAME_FORMAT=[{published}]{title}
23
30
Original file line number Diff line number Diff line change @@ -18,6 +18,13 @@ KTOOLBOX_JOB__POST_STRUCTURE__ATTACHMENTS=./
18
18
# 按照数字顺序重命名附件, 例如 `1.png`, `2.png`, ...
19
19
KTOOLBOX_JOB__SEQUENTIAL_FILENAME=True
20
20
21
+ # 通过插入一个代表了基本文件名的空白的 `{}` 以自定义文件名格式
22
+ # 与 `post_dirname_format` 类似,你可以使用一些 `Post` 类里的属性
23
+ # 例如 `{title}_{}` > `HelloWorld_b4b41de2-8736-480d-b5c3-ebf0d917561b`
24
+ # 你也可以和 `sequential_filename` 搭配使用
25
+ # 例如 `[{published}]_{}` > `[2024-1-1]_1.png`, `[2024-1-1]_2.png`
26
+ KTOOLBOX_JOB__FILENAME_FORMAT=[{published}]_{}
27
+
21
28
# 将发布日期作为作品目录名的开头,例如 `[2024-1-1]HelloWorld`
22
29
KTOOLBOX_JOB__POST_DIRNAME_FORMAT=[{published}]{title}
23
30
Original file line number Diff line number Diff line change @@ -8,6 +8,13 @@ KTOOLBOX_JOB__POST_STRUCTURE__ATTACHMENTS=./
8
8
# Rename attachments in numerical order, e.g. `1.png`, `2.png`, ...
9
9
KTOOLBOX_JOB__SEQUENTIAL_FILENAME = True
10
10
11
+ # Customize the filename format by inserting an empty `{}` to represent the basic filename.
12
+ # Similar to `post_dirname_format`, you can use some of the properties in `Post`.
13
+ # For example: `{title}_{}` > `HelloWorld_b4b41de2-8736-480d-b5c3-ebf0d917561b`, etc.
14
+ # You can also use it with `sequential_filename`. For instance,
15
+ # `[{published}]_{}` > `[2024-1-1]_1.png`, `[2024-1-1]_2.png`, etc.
16
+ KTOOLBOX_JOB__FILENAME_FORMAT = [{published}]_{}
17
+
11
18
# Prefix the post directory name with its release/publish date, e.g. `[2024-1-1]HelloWorld`
12
19
KTOOLBOX_JOB__POST_DIRNAME_FORMAT = [{published}]{title}
13
20
You can’t perform that action at this time.
0 commit comments