{% extends "base.html" %} {% block content %} {% set isGated = story.nsfw and archive.config.hideNsfw %}

{{ story.title }} {% if not story.published %}Draft{% endif %} {% if story.nsfw %}NSFW{% elif story.hasNsfwSections %}Contains NSFW{% endif %}

{% if story.author %} {% endif %} {% include "_meta_block.html" %} {% if story.summaryHtml %}

Summary

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

See the end of the story for notes.

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

See the end of the story for notes.

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