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

feat: use feed icon as article page icon

This commit is contained in:
Étienne Fildadut 2025-10-12 13:01:49 +02:00
parent 66e2a486a4
commit 5a47bed5b7

View file

@ -63,6 +63,9 @@ article_template = '''
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta name="viewport" content="width=device-width" /> <meta name="viewport" content="width=device-width" />
<title>{{ title }}</title> <title>{{ title }}</title>
{% if feed_icon_url %}
<link rel="icon" href="{{ feed_icon_url }}" />
{% endif %}
</head> </head>
<body style="background-color:black; color:white; overflow-x:hidden;"> <body style="background-color:black; color:white; overflow-x:hidden;">
<style> <style>
@ -91,7 +94,9 @@ article_template = '''
<div class="feather-content">{{ content | safe }}</div> <div class="feather-content">{{ content | safe }}</div>
{% else %} {% else %}
<div class="feather-content"> <div class="feather-content">
<img src="{{ image_url }}"> {% if image_url %}
<img src="{{ image_url }}">
{% endif %}
{{ summary | safe }} {{ summary | safe }}
</div> </div>
{% endif %} {% endif %}