I'm back I guess. Revert "I'm done."

This reverts commit d4e10810f8.
This commit is contained in:
Matthias Portzel 2023-12-18 14:07:57 -06:00
parent b56e6be8c9
commit 77af72a712
1 changed files with 30 additions and 37 deletions

View File

@ -36,9 +36,7 @@
<nav class="nav" id="main-nav" aria-label="Navigation">
<span class="nav-item"><a href="/about">About this site</a></span>
{% if authenticated %}
<span class="nav-item"><a href="/search">Search</a></span>
{% endif %}
<span class="nav-item"><a href="/search">Search</a></span>
{% if authenticated %}
<span class="nav-item"><a href="/post">Post</a></span>
@ -47,48 +45,43 @@
{% endblock %}
{% block main %}
{% if authenticated %}
<nav class="nav top" aria-label="History Navigation">
{% if not is_first_page %}
<span class="nav-item"><a href="?page={{ previous_page_slug }}">Newer</a></span>
{% endif %}
<nav class="nav top" aria-label="History Navigation">
{% if not is_first_page %}
<span class="nav-item"><a href="?page={{ previous_page_slug }}">Newer</a></span>
{% endif %}
<span class="nav-item"><span class="current-page">{{ page.formatted_name }}</span></span>
<span class="nav-item"><span class="current-page">{{ page.formatted_name }}</span></span>
{% if not is_last_page %}
<span class="nav-item"><a href="?page={{ next_page_slug }}">Older</a></span>
{% endif %}
</nav>
{% if not is_last_page %}
<span class="nav-item"><a href="?page={{ next_page_slug }}">Older</a></span>
{% endif %}
</nav>
{% for thought in thoughts %}
<div class="thought{% if thought.uuid == highlighted %} highlighted{% endif %}" id="{{ thought.uuid }}">
{% if thought.uuid == highlighted %}
{% if authenticated %}
{{ thought.get_html_content_authenticated }}
{% else %}
{{ thought.get_html_content }}
{% endif %}
{% for thought in thoughts %}
<div class="thought{% if thought.uuid == highlighted %} highlighted{% endif %}" id="{{ thought.uuid }}">
{% if thought.uuid == highlighted %}
{% if authenticated %}
{{ thought.get_html_content_authenticated }}
{% else %}
{{ thought.html_content|safe }}
{{ thought.get_html_content }}
{% endif %}
</div>
{% endfor %}
{% else %}
{{ thought.html_content|safe }}
{% endif %}
</div>
{% endfor %}
<nav class="nav bottom" aria-label="History Navigation">
{% if not is_first_page %}
<span class="nav-item"><a href="?page={{ previous_page_slug }}">Newer</a></span>
{% endif %}
<nav class="nav bottom" aria-label="History Navigation">
{% if not is_first_page %}
<span class="nav-item"><a href="?page={{ previous_page_slug }}">Newer</a></span>
{% endif %}
<span class="nav-item"><span class="current-page">{{ page.formatted_name }}</span></span>
<span class="nav-item"><span class="current-page">{{ page.formatted_name }}</span></span>
{% if not is_last_page %}
<span class="nav-item"><a href="?page={{ next_page_slug }}">Older</a></span>
{% endif %}
</nav>
{% else %}
<h3>Thoughts is currently private. Please check back on December 15th.</h3>
{% endif %}
{% if not is_last_page %}
<span class="nav-item"><a href="?page={{ next_page_slug }}">Older</a></span>
{% endif %}
</nav>
{% endblock %}
{% block scripts %}