{% extends "base.html" %} {% block content %} {% set gateKind = 'work' if story.nsfw else ('chapter' if chapter.nsfw else '') %} {% set gateReason = story.nsfwReason if story.nsfw else chapter.nsfwReason %} {% set isGated = gateKind and archive.config.hideNsfw %} {% set navPosition = 'top' %} {% include "_chapter_nav.html" %}

{{ story.title }}

{{ chapter.displayTitle }} {% if not chapter.published %}Draft{% endif %} {% if story.nsfw or chapter.nsfw %}NSFW{% elif chapter.hasNsfwSections %}Contains NSFW{% endif %}

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

Story details & tags {% include "_meta_block.html" %}
{% if chapter.summaryHtml %}

Chapter Summary

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

See the end of the chapter for notes.

{% endif %} {% endif %}
{% if isGated %}
{% if chapter.notesHtml %} {% elif chapter.endnotesHtml %}

See the end of the chapter for notes.

{% endif %} {% endif %}
{{ chapter.bodyHtml | safe }}
{% if chapter.endnotesHtml %} {% endif %} {% if isGated %}
{% endif %}
{% set navPosition = 'bottom' %} {% include "_chapter_nav.html" %} {% endblock %}