Compare commits

..

1 Commits

Author SHA1 Message Date
Eloi Torrents
cc86aa1d6d expose trailing_punctuation to rss 2025-09-05 12:24:41 +02:00
2 changed files with 3 additions and 1 deletions

View File

@ -12,6 +12,7 @@ landing_page="index.html"
[post]
accepted_images= ["jpg", "JPG", "png", "PNG"]
trailing_punctuation = ".,)!?>];:"
# true = add <p></p> tags to each line.
tag_paragraphs=true
# apply <p> tags even if a line contains the following
@ -85,4 +86,3 @@ title="Your Microblog Title Here"
title_tagged = "#{__tagname__} on {__title__}"
url = "https://yourdomain.tld/microblog/"
description = "Your description here."
trailing_punctuation = ".,)!?>];:"

View File

@ -545,6 +545,8 @@ if __name__ == "__main__":
tl, tc, tg = get_posts(p, cfg["post"], new_posts)
if tl == []:
return
if "rss" in cfg and "post" in cfg:
cfg["rss"]["trailing_punctuation"] = cfg["post"]["trailing_punctuation"]
# main timeline
updated = []
updated += writepage(tpl, tl, tc, cfg["page"],