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

{% block content %}

    <div class="deck">
        <div class="story lead"></div>
        <div class="story second" id="n1"></div>
        <div class="story second" id="n2"></div>
        <div class="story thumb" id="n1"></div>
        <div class="story anchor"></div>
        <div class="story thumb" id="n2"></div>
    </div>

    <div class="top-reads">
        {% for article in toplist %}
            <a href="/article/{{article.pk}}">
                <div class="top-article">
                    <div class="top-badge {{article.section.classname}}">
                        <span class="index">{{forloop.counter}}</span>
                    </div>
                    <p class="top-title">{{article.title}}</p>
                </div>
            </a>
        {% endfor %}
    </div>

    <div class="homepage-content">
        <div class="left-col">
            {% for section in sections %}
                <section>
                    <h2>{{section.get_section_display}}</h2>
                    {% for post in section.posts %}
                        <div class="section-post">
                            <a href="/article/{{post.slug}}">
                                <h3 class="post-title">{{post.title}}</h3>
                                <span class="post-excerpt">{{post.excerpt}}</span>
                                {% comment %}

                                "Using python's datetime.strftime date format symbols would be too easy, let's use PHP's instead"
                                    -- some fucking django developer

                                https://docs.djangoproject.com/en/1.7/ref/templates/builtins/#date

                                {% endcomment %}
                                <span class="post-date">{{post.published | date:"l, F j"}}</p>
                            </a>
                        </div>
                    {% endfor %}
                </section>
            {% endfor %}
        </div>
        <div class="right-col">
            {# twitter #}
            <div>
                <a class="twitter-timeline" href="https://twitter.com/bowdoinorient" data-widget-id="265860324312354816">Tweets by @bowdoinorient</a>
            </div>

            {# scribd #}
            {% if current_issue.scribd_image %}
                <div class="current-issue">
                    <h2 class="current-issue-title">In Print</h2>
                    <a href="https://scribd.com/doc/{{current_issue.scribd}}">
                        <div class="issue-thumb" style="background-image:url('{{current_issue.scribd_image}}')"></div>
                        <ul class="issue-details">
                            <li>Volume {{current_issue.volume.volume_number}}</li>
                            <li>Number {{current_issue.issue_number}}</li>
                            <li>{{current_issue.issue_date}}</li>
                        </ul>
                    </a>
                </div>
            {% endif %}

            {# disqus #}
            <div class="dsq-widget">
                <h2 class="dsq-widget-title">Recent Comments</h2>
                <script type="text/javascript" src="http://disqus.com/forums/bowdoinorient/recent_comments_widget.js?num_items=8&hide_avatars=1&avatar_size=24&excerpt_length=140"></script>
            </div>
        </div>
    </div>

{% endblock %}

{% block nocompress %}
    <script type="text/javascript" src="{% static 'js/twitter.js' %}" async></script>
{% endblock %}<commit_msg>Load Disqus script from https<commit_after>{% extends "base.html" %}
{% load static %}

{% block content %}

    <div class="deck">
        <div class="story lead"></div>
        <div class="story second" id="n1"></div>
        <div class="story second" id="n2"></div>
        <div class="story thumb" id="n1"></div>
        <div class="story anchor"></div>
        <div class="story thumb" id="n2"></div>
    </div>

    <div class="top-reads">
        {% for article in toplist %}
            <a href="/article/{{article.pk}}">
                <div class="top-article">
                    <div class="top-badge {{article.section.classname}}">
                        <span class="index">{{forloop.counter}}</span>
                    </div>
                    <p class="top-title">{{article.title}}</p>
                </div>
            </a>
        {% endfor %}
    </div>

    <div class="homepage-content">
        <div class="left-col">
            {% for section in sections %}
                <section>
                    <h2>{{section.get_section_display}}</h2>
                    {% for post in section.posts %}
                        <div class="section-post">
                            <a href="/article/{{post.slug}}">
                                <h3 class="post-title">{{post.title}}</h3>
                                <span class="post-excerpt">{{post.excerpt}}</span>
                                {% comment %}

                                "Using python's datetime.strftime date format symbols would be too easy, let's use PHP's instead"
                                    -- some fucking django developer

                                https://docs.djangoproject.com/en/1.7/ref/templates/builtins/#date

                                {% endcomment %}
                                <span class="post-date">{{post.published | date:"l, F j"}}</p>
                            </a>
                        </div>
                    {% endfor %}
                </section>
            {% endfor %}
        </div>
        <div class="right-col">
            {# twitter #}
            <div>
                <a class="twitter-timeline" href="https://twitter.com/bowdoinorient" data-widget-id="265860324312354816">Tweets by @bowdoinorient</a>
            </div>

            {# scribd #}
            {% if current_issue.scribd_image %}
                <div class="current-issue">
                    <h2 class="current-issue-title">In Print</h2>
                    <a href="https://scribd.com/doc/{{current_issue.scribd}}">
                        <div class="issue-thumb" style="background-image:url('{{current_issue.scribd_image}}')"></div>
                        <ul class="issue-details">
                            <li>Volume {{current_issue.volume.volume_number}}</li>
                            <li>Number {{current_issue.issue_number}}</li>
                            <li>{{current_issue.issue_date}}</li>
                        </ul>
                    </a>
                </div>
            {% endif %}

            {# disqus #}
            <div class="dsq-widget">
                <h2 class="dsq-widget-title">Recent Comments</h2>
                <script type="text/javascript" src="https://disqus.com/forums/bowdoinorient/recent_comments_widget.js?num_items=8&hide_avatars=1&avatar_size=24&excerpt_length=140"></script>
            </div>
        </div>
    </div>

{% endblock %}

{% block nocompress %}
    <script type="text/javascript" src="{% static 'js/twitter.js' %}" async></script>
{% endblock %}
{'fraction_non_alphanumeric': 0.15707248416608022, 'fraction_numerical': 0.010978184377199156, 'mean_word_length': 1.396627318718381, 'pattern_counts': {'":': 0, '<': 151, '<?xml version=': 0, '>': 151, 'https://': 7, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4220278', 'n_tokens_mistral': 2115, 'n_tokens_neox': 1892, 'n_words': 334}