microblog.py/example/settings.toml
2023-09-03 13:42:51 -07:00

67 lines
1.8 KiB
TOML

# latestpage="result.html"
latestpages=["meta.json", "result.html"]
[page]
postsperpage = 20
relative_css=["./style.css", "./timeline.css"]
[post]
accepted_images= ["jpg", "JPG", "png", "PNG"]
# true = add <p></p> tags to each line.
tag_paragraphs=true
# adds <br> or user defined string between each line
# line_separator="<br>"
format="""
<div class="postcell" id="{__num__}">
<div class="timestamp">{__timestamp__}
<a href=#{__num__}>(#{__num__})</a>
</div>
<div class="message">{__msg__}</div>
{__btn__}
</div>
"""
[post.buttons]
reply = "mailto:user@host.tld"
test = "https://toml.io/en/v1.0.0#array-of-tables"
interact = "https://yoursite.tld/cgi?postid="
[post.gallery]
path_to_thumb="./thumbs"
path_to_fullsize="./images"
[webring]
enabled=false
file_output="meta.json"
[webring.profile]
username="Your name here"
url="https://yourdomain.tld/microblog/"
avatar="https://yourdomain.tld/microblog/images/avatar.jpg"
short_bio= "Your self-description. Anything longer than 150 characters is truncated."
[webring.following]
list= ["https://likho.neocities.org/microblog/meta.json",
"https://check.torproject.org/api/ip"]
format="""
<div class="fill">
<div class="postcell">
<img src="{__avatar__}" alt="Avatar" class="avatar">
<span class="wrapper"">
<div class="handle">
<a href="{__url__}">{__handle__}</a>
</div>
<div class="last-updated">Last Update: {__lastupdated__}</div>
<span class="post-count">Posts: {__post_count__}</span>
</span>
<p class="short-bio">{__shortbio__}</p>
</div>
</div>
"""
# internally link avatars - avoidis hotlinks
[webring.following.internal-avatars]
enabled=false
path_to_avatars="/microblog/avatars" # link rendered on page
local_path_to_avatars="./avatars" # destination folder on pc