forked from tanner/qotnews
chore: Remove conditional CSS import and improve alt attributes
This commit is contained in:
@@ -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>
|
||||||
​ {{ story.date | fromnow }}
|
{{ story.date | fromnow }}
|
||||||
​ on <a href="{{ story.link }}">{{ story.source }}</a> | ​
|
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>)
|
||||||
|
|||||||
Reference in New Issue
Block a user