{% extends "base.html" %} {% block content %}

{{ story.title }} Entire Work {% if not story.published %}Draft{% endif %}

{% if story.author %} {% endif %} {% include "_meta_block.html" %}
Chapter Index {% if story.chapters %} Chapter-by-Chapter View {% endif %}
{% if story.summaryHtml %}

Summary

{{ story.summaryHtml | safe }}
{% endif %} {% if story.notesHtml %} {% endif %} {% if story.chapters | length > 1 %} {% endif %}
{% for chapter in story.chapters %}

{{ chapter.displayTitle }} {% if not chapter.published %}Draft{% endif %}

{{ chapter.wordCount | format_num }} words{% if chapter.hasExplicitDate %} · {% endif %}

{% if chapter.summaryHtml %}

Chapter Summary

{{ chapter.summaryHtml | safe }}
{% endif %} {% if chapter.notesHtml %} {% elif chapter.endnotesHtml %}

See the end of this chapter for notes.

{% endif %}
{{ chapter.bodyHtml | safe }}
{% if chapter.endnotesHtml %} {% endif %}
{% endfor %} {% if story.endnotesHtml %} {% endif %}
{% endblock %}