{% extends "base.html" %} {% import "utils.html" as utils %} {% block title %}{{ post.title }} - r/{{ post.community }}{% endblock %} {% block search %} {% call utils::search(["/r/", post.community.as_str()].concat(), "") %} {% endblock %} {% block root %}/r/{{ post.community }}{% endblock %}{% block location %}r/{{ post.community }}{% endblock %} {% block head %} {% call super() %} {% endblock %} {% block subscriptions %} {% call utils::sub_list(post.community.as_str()) %} {% endblock %} {% block content %}
{% let community -%}
{% if post.community.starts_with("u_") -%}
{% let community = format!("u/{}", &post.community[2..]) -%}
{% else -%}
{% let community = format!("r/{}", post.community) -%}
{% endif -%}
{{ post.community }}
•
u/{{ post.author.name }}
•
{{ post.rel_time }}
{% if !post.awards.is_empty() %}
{% for award in post.awards.clone() %}
{% endfor %}
{% endif %}