update
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user