Markdown and Subreddit Sidebars

This commit is contained in:
spikecodes 2020-12-28 18:42:46 -08:00
parent ac84d8d2db
commit 443b198c12
11 changed files with 153 additions and 182 deletions

View file

@ -12,24 +12,24 @@
{% for post in posts %}
<div class="post">
<div class="post_left">
<h3 class="post_score">{{ post.score }}</h3>
<p class="post_score">{{ post.score }}</p>
{% if post.nsfw %}<div class="nsfw">NSFW</div>{% endif %}
</div>
<div class="post_right">
<h4>
<p>
<b><a class="post_subreddit" href="/r/{{ post.community }}">r/{{ post.community }}</a></b>
&bull; <a class="post_author" href="/u/{{ post.author }}">u/{{ post.author }}</a>
{% if post.author_flair.0 != "" %}
<small class="author_flair">{{ post.author_flair.0 }}</small>
{% endif %}
<span class="datetime" style="float: right;">{{ post.time }}</span>
</h4>
<h3 class="post_title">
</p>
<p class="post_title">
{% if post.flair.0 != "" %}
<small class="post_flair" style="color:{{ post.flair.2 }}; background:{{ post.flair.1 }}">{{ post.flair.0 }}</small>
{% endif %}
<a href="{{ post.url }}">{{ post.title }}</a>
</h3>
</p>
</div>
<img class="post_thumbnail" src="{{ post.media }}">
</div><br>
@ -37,11 +37,11 @@
<footer>
{% if ends.0 != "" %}
<a href="?before={{ ends.0 }}">PREV</a>
<a href="?sort={{ sort }}&before={{ ends.0 }}">PREV</a>
{% endif %}
{% if ends.1 != "" %}
<a href="?after={{ ends.1 }}">NEXT</a>
<a href="?sort={{ sort }}&after={{ ends.1 }}">NEXT</a>
{% endif %}
</footer>
</div>