This commit is contained in:
2025-07-16 10:08:43 +09:00
parent 69182a1bf8
commit 16d724ec25
56 changed files with 6 additions and 7121 deletions

View File

@@ -27,40 +27,27 @@
</div>
</header>
{% if not post.extra or not post.extra.type or post.extra.type != "ai" %}
<nav class="toc">
<h3>Contents</h3>
<div id="toc-content">
<!-- TOC will be generated by JavaScript -->
</div>
</nav>
{% endif %}
<div class="article-body">
{% if post.extra and post.extra.type == "ai" %}
<!-- AI Conversation Content (Markdown first) -->
{{ post.content | safe }}
{% elif not post.extra or not post.extra.type or post.extra.type != "ai" %}
{{ post.content | safe }}
{% endif %}
{{ post.content | safe }}
</div>
{% if not post.extra or not post.extra.type or post.extra.type != "ai" %}
<div id="comment-atproto"></div>
{% endif %}
</article>
</div>
{% if post.extra and post.extra.type == "ai" %}
<div id="ai-conversation-atproto"></div>
{% endif %}
<script>
// Generate table of contents
function generateTableOfContents() {
const tocContainer = document.getElementById('toc-content');
if (!tocContainer) {
// TOC container doesn't exist (e.g., AI conversation type posts)
return;
}