mirror of
https://codeberg.org/Reuh/feather.git
synced 2025-10-27 10:09:32 +00:00
feat: use feed icon as article page icon
This commit is contained in:
parent
66e2a486a4
commit
5a47bed5b7
1 changed files with 6 additions and 1 deletions
|
|
@ -63,6 +63,9 @@ article_template = '''
|
|||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
<title>{{ title }}</title>
|
||||
{% if feed_icon_url %}
|
||||
<link rel="icon" href="{{ feed_icon_url }}" />
|
||||
{% endif %}
|
||||
</head>
|
||||
<body style="background-color:black; color:white; overflow-x:hidden;">
|
||||
<style>
|
||||
|
|
@ -91,7 +94,9 @@ article_template = '''
|
|||
<div class="feather-content">{{ content | safe }}</div>
|
||||
{% else %}
|
||||
<div class="feather-content">
|
||||
<img src="{{ image_url }}">
|
||||
{% if image_url %}
|
||||
<img src="{{ image_url }}">
|
||||
{% endif %}
|
||||
{{ summary | safe }}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue