mirror of
https://codeberg.org/Reuh/feather.git
synced 2025-10-27 10:09:32 +00:00
feat: use sans-serif font in default template
This commit is contained in:
parent
dd0ea5a639
commit
8521dce8f7
1 changed files with 3 additions and 2 deletions
|
|
@ -36,7 +36,7 @@ data = "data"
|
||||||
reader = "reader"
|
reader = "reader"
|
||||||
|
|
||||||
[html]
|
[html]
|
||||||
# HTML template used for generating article HTML files. All templates are Jinja2 templates.
|
# Template used for generating article HTML files. All templates are Jinja2 templates.
|
||||||
# Available fields:
|
# Available fields:
|
||||||
# - id: article id (int | str)
|
# - id: article id (int | str)
|
||||||
# - unread: if the article is unread (bool) - only makes sense if server.only_sync_unread_articles is false
|
# - unread: if the article is unread (bool) - only makes sense if server.only_sync_unread_articles is false
|
||||||
|
|
@ -67,7 +67,7 @@ article_template = '''
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<title>{{ title }} - {{ feed_title }}</title>
|
<title>{{ title }} - {{ feed_title }}</title>
|
||||||
</head>
|
</head>
|
||||||
<body style="background-color:black; color:white; overflow-x:hidden;">
|
<body style="background-color:black; color:white; font-family:sans-serif; overflow-x:hidden;">
|
||||||
<style>
|
<style>
|
||||||
a {color:palevioletred; text-decoration:none;}
|
a {color:palevioletred; text-decoration:none;}
|
||||||
.feather-content img {display:block; margin-left:50%; transform:translateX(-50%); max-width:100vw;}
|
.feather-content img {display:block; margin-left:50%; transform:translateX(-50%); max-width:100vw;}
|
||||||
|
|
@ -114,6 +114,7 @@ filename_template = "[{{ feed_title }}]\t{{ title }} ({{ published }}).html"
|
||||||
# - title: category name (str)
|
# - title: category name (str)
|
||||||
# - parents: list of parent categories (list[Category])
|
# - parents: list of parent categories (list[Category])
|
||||||
# - order: category display order, starting from 1 (0 if unknown) (int)
|
# - order: category display order, starting from 1 (0 if unknown) (int)
|
||||||
|
# If empty, no directory will be created.
|
||||||
# Can be set through the environment variable HTML_CATEGORY_TEMPLATE.
|
# Can be set through the environment variable HTML_CATEGORY_TEMPLATE.
|
||||||
category_template = "{% if order %}{{ '%02d' % order }} {% endif %}{{ title }}"
|
category_template = "{% if order %}{{ '%02d' % order }} {% endif %}{{ title }}"
|
||||||
# Set to true to automatically remove category directories when they do not contain any article.
|
# Set to true to automatically remove category directories when they do not contain any article.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue