chore: Remove conditional CSS import and improve alt attributes

This commit is contained in:
2025-12-04 19:29:04 +00:00
committed by Tanner Collin (aider)
parent a5e762c36b
commit e9e3cb30a4

View File

@@ -30,9 +30,6 @@
--> -->
<title>{{ title }}</title> <title>{{ title }}</title>
{% if css_file %}
<link href="/static/css/{{ css_file }}" rel="stylesheet">
{% endif %}
<style> <style>
html { html {
overflow-y: scroll; overflow-y: scroll;
@@ -73,8 +70,8 @@
<div class="info"> <div class="info">
{{ story.score }} points {{ story.score }} points
by <a href="{{ story.author_link }}">{{ story.author }}</a> by <a href="{{ story.author_link }}">{{ story.author }}</a>
&#8203; {{ story.date | fromnow }} {{ story.date | fromnow }}
&#8203; on <a href="{{ story.link }}">{{ story.source }}</a> | &#8203; on <a href="{{ story.link }}">{{ story.source }}</a> |
<a href="/{{ story.id }}/c"> <a href="/{{ story.id }}/c">
{{ story.num_comments }} comment{{ 's' if story.num_comments != 1 }} {{ story.num_comments }} comment{{ 's' if story.num_comments != 1 }}
</a> </a>
@@ -115,7 +112,7 @@
<div class='item'> <div class='item'>
<div class='title'> <div class='title'>
<a class='link' href='/{{ story.id }}'> <a class='link' href='/{{ story.id }}'>
<img class='source-logo' src='/logos/{{ story.source }}.png' alt='source logo' /> {{ story.title }} <img class='source-logo' src='/logos/{{ story.source }}.png' alt='{{ story.source }}:' /> {{ story.title }}
</a> </a>
<span class='source'> <span class='source'>
(<a class='source' href='{{ story.url or story.link }}'>{{ story.hostname }}</a>) (<a class='source' href='{{ story.url or story.link }}'>{{ story.hostname }}</a>)