{% extends "base.html" %} {% import "utils.html" as utils %} {% block title %}Libreddit: search results - {{ params.q }}{% endblock %} {% block content %}
{% if sub != "" %}
{% endif %} {% if params.sort != "new" %}{% endif %}
{% if subreddits.len() > 0 %}
{% for subreddit in subreddits %}

{{ subreddit.name }} {{ subreddit.subscribers }} Members

{{ subreddit.description }}

{% endfor %}
{% endif %} {% for post in posts %} {% if post.flags.nsfw && prefs.hide_nsfw == "on" %} {% else if post.title != "Comment" %}

r/{{ post.community }} {{ post.rel_time }}

{% if post.flair.flair_parts.len() > 0 %} {% call utils::render_flair(post.flair.flair_parts) %} {% endif %} {{ post.title }}{% if post.flags.nsfw %} NSFW{% endif %}

{% if (prefs.layout.is_empty() || prefs.layout == "card") && post.post_type == "image" %} {% else if post.post_type != "self" %} {% if post.thumbnail.url.is_empty() %} {% else %} {% endif %} {% if post.post_type == "link" %}{{ post.domain }}{% else %}{{ post.post_type }}{% endif %} {% endif %}
{{ post.score }} Upvotes
{% else %}

{{ post.score }}

COMMENT {{ post.rel_time }}

{{ post.body }}

{% endif %} {% endfor %}
{% endblock %}