{% extends "base.html" %} {% block title %}Home{% endblock %} {% block content %}

TechTalks

{% for post in posts %}
{% if post.author %} {% if post.author.profile_picture %} Profile Picture {% else %}
{{ post.author.username[0].upper() }}
{% endif %} {{ post.author.username }} {% else %} {{ post.anonymous_username }} {% endif %} {{ post.timestamp.strftime('%Y-%m-%d %H:%M:%S') }}

{{ post.content|safe }}

{% if post.image_url %} Post image {% endif %}
Open in new tab {% if current_user.is_authenticated and current_user.id == post.author.id %} Edit {% endif %}
{% endfor %}
{% endblock %} {% block scripts %} {{ super() }} {% endblock %}