{% extends "templates/wiki/layout.html" %} {% from "templates/wiki/macros/buttons.html" import render_icon, page_actions_dropdown, page_action_item, download_action_item, dropdown_end %} {% block title %} {{ metatags.title if metatags and metatags.title else doc.title }} {% endblock %} {% block head %} {% endblock %} {% block content %}
{% if hide_chrome %} {# Orphan document: Simple header with just copy button #}

{{ doc.title }}

{% else %}
{{ page_actions_dropdown(edit_href=doc.get_edit_link(), show_edit=can_edit, edit_external=wiki_space.git_synced) }} {{ download_action_item() }} {% if can_edit %} {{ page_action_item(text="Copy page", description="Copy page as Markdown for LLMs", icon="clipboard", click="copyMarkdown(); open = false") }} {% endif %} {{ page_action_item(text="Open in ChatGPT", description="Ask ChatGPT about this page", icon="openai", href_expr="getAIUrl('openai')", target="_blank") }} {{ page_action_item(text="Open in Claude", description="Ask Claude about this page", icon="claude", href_expr="getAIUrl('claude')", target="_blank") }} {{ dropdown_end() }}

{{ doc.title }}

{% endif %}
{{ rendered_content | safe }}
{{ _('Last updated {0}').format(last_updated) }}
{% if wiki_space and wiki_space.enable_feedback_collection %} {% include "templates/wiki/includes/feedback_widget.html" %} {% endif %}
{% if not hide_chrome %} {% include "templates/wiki/includes/toc.html" %} {% endif %}
/quotes. Do NOT add `forceescape` here (that's only for tojson in HTML attributes); inside {% endblock %}