<commit_before>extends base
- load staticfiles
- load cache
- load markdown_trois_tags
- load timedelta
- load lazy_load

block media
    link(rel='alternate', type='application/atom+xml', href='{% url "comment_atom" %}', title='Atom Comment Feed')
    link(rel='alternate', type='application/rss+xml', href='{% url "comment_rss" %}', title='RSS Comment Feed')

block js_media
    script(type='text/javascript').
        $(document).ready(function () {
            $('.time-remaining').each(function () {
                count_down($(this));
            });
        });

block body
    block before_posts

    #blog-container
        div.blog-content
            each post in posts
                div(class=('sticky post' if post.sticky else 'post'))
                    h2.title
                        a(href='{% url "blog_post" post.id post.slug %}')= post.title
                    div.time
                        if post.sticky
                            i.fa.fa-star.fa-fw(title='Sticky')
                        | #{post.publish_on|date:"N j, o, G:i"}
                    div.summary
                        - cache 86400 post_summary post.id
                            | #{post.summary|default:post.content|markdown:"blog"|lazy_load}

            if page_obj.num_pages > 1
                div(style='margin-bottom:10px;margin-top:10px')
                    include list_pages
        div.blog-sidebox
            h3 Upcoming contests
                i.fa.fa-trophy
            each contest in future_contests
                .contest
                    .name
                        a(href='{% url "contest_view" contest.key %}')= contest.name
                    .time Starts in
                        = ' '
                        span.time-remaining #{contest.time_before_start|timedelta:"simple"}
        div.blog-sidebox<commit_msg>Show upcoming contest only when there is actually one #243<commit_after>extends base
- load staticfiles
- load cache
- load markdown_trois_tags
- load timedelta
- load lazy_load

block media
    link(rel='alternate', type='application/atom+xml', href='{% url "comment_atom" %}', title='Atom Comment Feed')
    link(rel='alternate', type='application/rss+xml', href='{% url "comment_rss" %}', title='RSS Comment Feed')

block js_media
    script(type='text/javascript').
        $(document).ready(function () {
            $('.time-remaining').each(function () {
                count_down($(this));
            });
        });

block body
    block before_posts

    #blog-container
        div.blog-content
            each post in posts
                div(class=('sticky post' if post.sticky else 'post'))
                    h2.title
                        a(href='{% url "blog_post" post.id post.slug %}')= post.title
                    div.time
                        if post.sticky
                            i.fa.fa-star.fa-fw(title='Sticky')
                        | #{post.publish_on|date:"N j, o, G:i"}
                    div.summary
                        - cache 86400 post_summary post.id
                            | #{post.summary|default:post.content|markdown:"blog"|lazy_load}

            if page_obj.num_pages > 1
                div(style='margin-bottom:10px;margin-top:10px')
                    include list_pages
        if future_contests
            div.blog-sidebox
                h3 Upcoming contests
                    i.fa.fa-trophy
                each contest in future_contests
                    .contest
                        .name
                            a(href='{% url "contest_view" contest.key %}')= contest.name
                        .time Starts in
                            = ' '
                            span.time-remaining #{contest.time_before_start|timedelta:"simple"}
        div.blog-sidebox
{'fraction_non_alphanumeric': 0.11352910330361825, 'fraction_numerical': 0.007079181961195595, 'mean_word_length': 1.4934640522875817, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1172672', 'n_tokens_mistral': 1088, 'n_tokens_neox': 1008, 'n_words': 212}