1
0
Fork 0
mirror of https://codeberg.org/Reuh/feather.git synced 2025-10-27 18:19:32 +00:00
feather/config.default.toml

55 lines
2.5 KiB
TOML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

[server]
# (Required) URL of your server's Google Reader API endpoint
url = "https://rss.example.com/"
# (Required) Username/email-adress used to connect to the server
user = "username"
# (Required) Password/API password used to connect to the server
password = "password"
# How many items to retrieve at most from the server in a single request. Lower values will make synchronization slower, higher values might make the server complain.
# Most servers are supposedly okay with up to 1000, but tt-rss complained so I dropped it to 500 here.
items_per_request = 500
[directories]
# Directory path where the internal feather data will be stored.
data = "data"
# Directory path where the user-facing files will be stored.
reader = "reader"
[html]
# HTML template used for generating item HTML files. All templates are Jinja2 templates.
template = '''
<!doctype html>
<html lang="en-US">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<title>{{ title }}</title>
</head>
<body style="background-color:black; color:white;">
<style>a{color:palevioletred; text-decoration:none;}</style>
<article style="max-width:60rem; margin:auto;">
<p style="display:flex; flex-direction:row; justify-content:space-between;">
<span>{{ published_formatted }}</span>
<span><a href="{{ origin_url }}">{{ origin_title }}</a></span>
</p>
<h1><a href="{{ canonical_url }}">{{ title }}</a></h1>
<h3>{{ author }}</h3>
<div>{{ summary | safe }}</div>
<div>{{ content | safe }}</div>
</article>
</body>
</html>
'''
# Filename template for generated HTML files.
filename_template = "{{ published_formatted }}\t[{{ origin_title }}]\t{{ title }}.html"
# Maximum allowed filename length (in bytes assuming UTF-8 encoding) before truncating. Depending on your filesystem filename's limits it may be possible to increase the value, ask Wikipedia for details.
max_filename_length = 250
# Table mapping characters to what they will be replaced with in filenames. Useful to remove/replace characters that are not allowed in filename by your filesystem. The default should be fine for most Unix filesystems.
filename_replacement = { "/" = "", "\u0000" = "" }
[datetime]
# Which timezone to use when writing date and time.
timezone = "Etc/UTC"
# How date and time are formatted. See https://docs.python.org/3/library/datetime.html#strftime-strptime-behavior for the supported codes.
# This will be used in filenames so it's a good idea to use something sortable...
format = "%Y-%m-%d %H:%M"