<commit_before>{% extends "base.html" %}

{% load static core_tags %}
{% load wagtailcore_tags wagtailimages_tags %}
{% load comments mptt_tags molo_commenting_tags i18n %}
{% load nurseconnect_tags %}


{% block content %}
    {% load_child_sections_for_section self as sections %}

    {% for section in sections %}
        <section class="ContentList ContentList--bgTertiary">
            <header class="ContentList-header">
                <h1 class="ContentList-categoryLabel">{{ section.title }}</h1>
            </header>

            {% load_child_articles_for_section section as articles %}
            <div class="ContentList-body">
                {% for article in articles %}
                    <article class="Article">
                        <a href="{% pageurl article %}" class="Article-hitBox">
                            {% if article.image %}
                                {% image article.image width-85 class="Article-image Article-image--aside" %}
                            {% endif %}
                            <h2 class="Article-headline">{{ article.title }}</h2>
                            <p class="Article-strapline">{{ article.subtitle }}</p>
                        </a>
                    </article>
                {% endfor %}
            </div>
            <footer class="ContentList-actions">
                <a href="{% pageurl section %}" class="Button Button--blue">{% trans "View more articles about" %} {{ section.title }}</a>
            </footer>
        </section>
    {% endfor %}

    {% load_child_articles_for_section self as articles %}

    <div class="ContentList-body">
        {% for article in articles %}
            <article class="Article">
                <a href="{% pageurl article %}" class="Article-hitBox">
                    {% if article.image %}
                        {% image article.image width-100 class="Article-image Article-image--aside" %}
                    {% endif %}
                    <h2 class="Article-headline">{{ article.title }}</h2>
                    <p class="Article-strapline">{{ article.subtitle }}</p>
                    {% if article.is_current_topic_of_the_day %}
                        {% get_comment_count for article as comment_count %}
                        <img src="{% static 'images/comments.png' %}" alt="NurseConnect Comments" width=25 height=25 class="Logo-graphic"> <strong>{{ comment_count }}</strong>
                    {% endif %}
                </a>
            </article>
        {% endfor %}
    </div>

    {% if articles %}
        <aside class="ContentBody-secondaryNav">
            <nav class="Pagination" role="navigation">
                <ul class="Pagination-bar" role="menubar" aria-labelledby="pagination-label">
                    {% if articles_paginated.has_previous %}
                        <li class="Pagination-item Pagination-item--prev" role="presentation">
                            <a class="Pagination-link" role="menuitem"
                               href="?p={{ articles_paginated.previous_page_number }}">Prev</a>
                        </li>
                    {% endif %}
                    <span class="Pagination-label"
                          id="pagination-label">{% trans "Page" %} {{ articles_paginated.number }} {% trans "of" %} {{ articles_paginated.paginator.num_pages }}
                    </span><commit_msg>Fixed section hitboxes<commit_after>{% extends "base.html" %}

{% load static core_tags %}
{% load wagtailcore_tags wagtailimages_tags %}
{% load comments mptt_tags molo_commenting_tags i18n %}
{% load nurseconnect_tags %}


{% block content %}
    {% load_child_sections_for_section self as sections %}

    {% for section in sections %}
        <section class="ContentList ContentList--bgTertiary">
            <header class="ContentList-header">
                <h1 class="ContentList-categoryLabel">{{ section.title }}</h1>
            </header>

            {% load_child_articles_for_section section as articles %}
            <div class="ContentList-body">
                {% for article in articles %}
                    <a href="{% pageurl article %}" class="Article-hitBox">
                        <article class="Article">
                            {% if article.image %}
                                {% image article.image width-85 class="Article-image Article-image--aside" %}
                            {% endif %}
                            <h2 class="Article-headline">{{ article.title }}</h2>
                            <p class="Article-strapline">{{ article.subtitle }}</p>

                        </article>
                    </a>
                {% endfor %}
            </div>
            <footer class="ContentList-actions">
                <a href="{% pageurl section %}"
                   class="Button Button--blue">{% trans "View more articles about" %} {{ section.title }}</a>
            </footer>
        </section>
    {% endfor %}

    {% load_child_articles_for_section self as articles %}

    <div class="ContentList-body">
        {% for article in articles %}
            <a href="{% pageurl article %}" class="Article-hitBox">
                <article class="Article">
                    {% if article.image %}
                        {% image article.image width-100 class="Article-image Article-image--aside" %}
                    {% endif %}
                    <h2 class="Article-headline">{{ article.title }}</h2>
                    <p class="Article-strapline">{{ article.subtitle }}</p>
                    {% if article.is_current_topic_of_the_day %}
                        {% get_comment_count for article as comment_count %}
                        <img src="{% static 'images/comments.png' %}" alt="NurseConnect Comments" width=25 height=25
                             class="Logo-graphic"> <strong>{{ comment_count }}</strong>
                    {% endif %}
                </article>
            </a>
        {% endfor %}
    </div>

    {% if articles %}
        <aside class="ContentBody-secondaryNav">
            <nav class="Pagination" role="navigation">
                <ul class="Pagination-bar" role="menubar" aria-labelledby="pagination-label">
                    {% if articles_paginated.has_previous %}
                        <li class="Pagination-item Pagination-item--prev" role="presentation">
                            <a class="Pagination-link" role="menuitem"
                               href="?p={{ articles_paginated.previous_page_number }}">Prev</a>
                        </li>
                    {% endif %}
                    <span class="Pagination-label"
                          id="pagination-label">{% trans "Page" %} {{ articles_paginated.number }} {% trans "of" %} {{ articles_paginated.paginator.num_pages }}
                    </span>
{'fraction_non_alphanumeric': 0.13450292397660818, 'fraction_numerical': 0.004970760233918129, 'mean_word_length': 1.6433539412673879, 'pattern_counts': {'":': 0, '<': 87, '<?xml version=': 0, '>': 87, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3622231', 'n_tokens_mistral': 1918, 'n_tokens_neox': 1679, 'n_words': 367}