{% extends "newsroom/base.html" %} {% block flag_update_stamp %}Last updated {{edition.published_on|date:"F j, Y"}}{% endblock %} {% block topad %}
{% load adzone_tags %} {% random_zone_ad '' 'top-leaderboard' %}
{% endblock %} {% block content %} {% load typogrify convert_tags markup %}
{% ifequal edition.featured_story.weight 99 %}
{{edition.featured_story.lead_photo.title}}
{{edition.featured_story.lead_photo.title|typogrify|urlize|markdown|typogrify}}
{% if edition.featured_story.lead_photo.photographer %} Photo by {{edition.featured_story.lead_photo.photographer}} {% else %} {% if edition.featured_story.lead_photo.courtesy %} Photo courtesy of {{edition.featured_story.lead_photo.courtesy}} {% endif %} {% if edition.featured_story.lead_photo.file_photo %} Penobscot Bay Press file photo {% endif %} {% endif %}
{{edition.featured_story.dateline}} —
{{edition.featured_story.summary|typogrify|urlize|markdown|truncatewords:110}}
Read full story
{% else %}
{{edition.featured_photo.title}}
{% if edition.featured_photo.gallery_photos.all %} {% for s in edition.featured_photo.gallery_photos.all %} {% if forloop.first %} {{s.description|typogrify|urlize|markdown|truncatewords:30}} {% endif %} {% endfor %} {% else %} {{edition.featured_photo.description|typogrify|urlize|markdown|truncatewords:30}} {% endif %}
{% if edition.featured_photo.photographer %} Photo by {{edition.featured_photo.photographer}} {% else %} {% if edition.featured_photo.courtesy %} Photo courtesy of {{edition.featured_photo.courtesy}} {% endif %} {% if edition.featured_photo.file_photo %} Penobscot Bay Press file photo {% endif %} {% endif %}
{% endifequal %}
{% for edition in latest_editions %}

{{edition.published_on|date:"l, F j, Y"}}

{% if forloop.first %} {% load markup typogrify humanize %} {% if edition.stories.published %} {% for story in edition.stories.published|dictsortreversed:"weight" %} {% ifequal story.weight 100 %}

BREAKING NEWS
{% if story.kicker %} {{story.kicker|typogrify}}
{% endif %} {{story.web_hed|typogrify}}
{% if story.subhed %} {{story.subhed|typogrify}}

{% endif %}
{{story.dateline}} —
{{story.summary|typogrify|truncatewords:30}}
Read full story
{% else %} {% if story == edition.featured_story %} {% ifnotequal story.weight 99 %}

{% if story.kicker %} {{story.kicker|typogrify}}
{% endif %} {{story.web_hed|typogrify}}
{% if story.subhed %} {{story.subhed|typogrify}} {% endif %}

{{story.dateline}} —
{{story.summary|typogrify|truncatewords:30}}
Read full story
{% endifnotequal %} {% else %}


{{story.web_hed|typogrify}}

{% endif %} {% endifequal %} {% endfor %} {% endif %} {% if edition.pdfdocuments.all %} {% for doc in edition.pdfdocuments.all %}

PDF Document
{{doc.title|typogrify}}

{% endfor %} {% endif %} {% if edition.movies.all %} {% for movie in edition.movies.all|dictsortreversed:"weight" %}

MOVIE
{{movie.title|typogrify}}

{% endfor %} {% endif %} {% if edition.slideshows.all %} {% for slideshow in edition.slideshows.all %}

SLIDESHOW
{{slideshow.title|typogrify}}

{% endfor %} {% endif %}
{% if edition.photos.published %} {% for photo in edition.photos.published %}

{{photo.title}}
{{photo.title|typogrify}}

{% endfor %} {% endif %} {% if edition.galleries.published %} {% for gallery in edition.galleries.published %}
{% for photo in gallery.photos.all|dictsortreversed:"weight" %} {% if forloop.first %} {% endif %} {% endfor %}
{% endfor %} {% endif %}
{% load adzone_tags %} {% random_zone_ad '' 'home-leaderboard' %}
{% else %} {% load markup typogrify humanize %} {% if edition.stories.published %} {% if edition.featured_photo.published %}

{{edition.featured_photo.title}}
{{edition.featured_photo.title|typogrify}}

{% endif %} {% for story in edition.stories.published|dictsortreversed:"weight" %} {% ifequal story.weight 100 %}

BREAKING NEWS
{% if story.kicker %} {{story.kicker|typogrify}}
{% endif %} {{story.web_hed|typogrify}}
{% if story.subhed %} {{story.subhed|typogrify}}

{% endif %}
{{story.dateline}} —
{{story.summary|typogrify|truncatewords:30}}
Read full story
{% else %} {% if story == edition.featured_story %}

{% if story.kicker %} {{story.kicker|typogrify}}
{% endif %} {{story.web_hed|typogrify}}
{% if story.subhed %} {{story.subhed|typogrify}} {% endif %}

{{story.dateline}} —
{{story.summary|typogrify|truncatewords:30}}
Read full story
{% else %}


{{story.web_hed|typogrify}}

{% endif %} {% endifequal %} {% endfor %} {% endif %} {% if edition.pdfdocuments.all %} {% for doc in edition.pdfdocuments.all %}

PDF Document
{{doc.title|typogrify}}

{% endfor %} {% endif %} {% if edition.movies.all %} {% for movie in edition.movies.all|dictsortreversed:"weight" %}

MOVIE
{{movie.title|typogrify}}

{% endfor %} {% endif %} {% if edition.slideshows.all %} {% for slideshow in edition.slideshows.all %}

SLIDESHOW
{{slideshow.title|typogrify}}

{% endfor %} {% endif %}
{% if edition.photos.published %} {% for photo in edition.photos.published %}

{{photo.title}}
{{photo.title|typogrify}}

{% endfor %} {% endif %} {% if edition.galleries.published %} {% for gallery in edition.galleries.published %}
{% for photo in gallery.photos.all|dictsortreversed:"weight" %} {% if forloop.first %} {% endif %} {% endfor %}
{% endfor %} {% endif %}
{% endif %} {% endfor %}
{% endblock %}