forked from tanner/qotnews
feat: Render homepage feed server-side
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
This commit is contained in:
@@ -108,6 +108,30 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% elif stories %}
|
||||
<div class="container">
|
||||
{% for story in stories %}
|
||||
<div class='item'>
|
||||
<div class='title'>
|
||||
<a class='link' href='/{{ story.id }}'>
|
||||
<img class='source-logo' src='/logos/{{ story.source }}.png' alt='source logo' /> {{ story.title }}
|
||||
</a>
|
||||
<span class='source'>
|
||||
(<a class='source' href='{{ story.url or story.link }}'>{{ story.hostname }}</a>)
|
||||
</span>
|
||||
</div>
|
||||
<div class='info'>
|
||||
{{ story.score }} points
|
||||
by <a href="{{ story.author_link }}">{{ story.author }}</a>
|
||||
​ {{ story.date | fromnow }}
|
||||
​ on <a href="{{ story.link }}">{{ story.source }}</a> | ​
|
||||
<a class="{{ 'hot' if story.num_comments > 99 else '' }}" href="/{{ story.id }}/c">
|
||||
{{ story.num_comments }} comment{{ 's' if story.num_comments != 1 }}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
<!--
|
||||
|
||||
Reference in New Issue
Block a user