For-loop не дает нужный результат

Не могу понять в чем проблема. Почему в for-loop он читает только первую линию if. ({% if notification.notification_types == 'Like' %}) Все другие варианты он игнорирует и даже else statement

{% for notification in notifications %}
                {% if notification.content_object %}
                <li class="list-group-item">
                    {% if notification.notification_types == 'Blog' or notification.notification_types == 'News' or notification.notification_types == 'Like'%}
                        {% if notification.notification_types == 'Like' %}
                        <a class="text-decoration-none text-dark" href="{% url 'news_details' notification.content_object.slug %}">
                            <p>{{notification.text}}</p>
                            <p>{{notification.created_date|timesince}} ago</p>
                        </a>
                            {% if notification.notification_types == 'Blog' %}
                            <a class="text-decoration-none text-dark" href="{% url 'blog_details' notification.content_object.slug %}">
                                <p>{{notification.text}}</p>
                                <p>{{notification.created_date|timesince}} ago</p>
                            </a>
                                {% if notification.notification_types == 'News' %}
                                <a class="text-decoration-none text-dark" href="{% url 'blog_details' notification.content_object.slug %}">
                                    <p>{{notification.text}}</p>
                                    <p>{{notification.created_date|timesince}} ago</p>
                                </a>
                    {% else %}
                    <a class="text-decoration-none text-dark" href="{% url 'view_user_information' notification.content_object.followed_by.username %}">
                        <p>{{notification.text}}</p>
                        <p>{{notification.created_date|timesince}} ago</p>
                    </a>
                    {% endif %}
                </li>
                {% endif %}
                {% endif %}
                {% endif %}
                {% endif %}
                {% endfor %}
Вернуться на верх