File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,8 @@ plugins:
23
23
datetime_format : " %Y-%m-%d %H:%M"
24
24
default_timezone : " Europe/Paris"
25
25
default_time : " 22:00"
26
+ abstract_chars_count : 160
27
+ abstract_delimiter : <!-- more -->
26
28
image : https://upload.wikimedia.org/wikipedia/commons/thumb/4/43/Feed-icon.svg/128px-Feed-icon.svg.png
27
29
match_path : " .*"
28
30
pretty_print : false
Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ class GitRssPlugin(BasePlugin):
47
47
48
48
config_scheme = (
49
49
("abstract_chars_count" , config_options .Type (int , default = 160 )),
50
+ ("abstract_delimiter" , config_options .Type (str , default = "<!-- more -->" )),
50
51
("categories" , config_options .Type (list , default = None )),
51
52
("comments_path" , config_options .Type (str , default = None )),
52
53
("date_from_meta" , config_options .Type (dict , default = None )),
@@ -256,7 +257,9 @@ def on_page_content(
256
257
),
257
258
created = page_dates [0 ],
258
259
description = self .util .get_description_or_abstract (
259
- in_page = page , chars_count = self .config .get ("abstract_chars_count" )
260
+ in_page = page ,
261
+ chars_count = self .config .get ("abstract_chars_count" ),
262
+ abstract_delimiter = self .config .get ("abstract_delimiter" ),
260
263
),
261
264
guid = page .canonical_url ,
262
265
image = self .util .get_image (
You can’t perform that action at this time.
0 commit comments