diff --git a/browser/templates/_types/post/_main_panel.html b/browser/templates/_types/post/_main_panel.html index 318d234..52a2c3a 100644 --- a/browser/templates/_types/post/_main_panel.html +++ b/browser/templates/_types/post/_main_panel.html @@ -1,17 +1,6 @@ -{# Main panel fragment for HTMX navigation - post article content #} +{# Main panel fragment for HTMX navigation - post/page article content #}
- {# ❤️ like button - always visible in top right of article #} - {% if g.user %} -
- {% set slug = post.slug %} - {% set liked = post.is_liked or False %} - {% set like_url = url_for('blog.post.like_toggle', slug=slug)|host %} - {% set item_type = 'post' %} - {% include "_types/browse/like/button.html" %} -
- {% endif %} - - {# Draft indicator + edit link #} + {# Draft indicator + edit link (shown for both posts and pages) #} {% if post.status == "draft" %}
Draft @@ -36,6 +25,18 @@
{% endif %} + {% if not post.is_page %} + {# ── Blog post chrome: like button, excerpt, tags/authors ── #} + {% if g.user %} +
+ {% set slug = post.slug %} + {% set liked = post.is_liked or False %} + {% set like_url = url_for('blog.post.like_toggle', slug=slug)|host %} + {% set item_type = 'post' %} + {% include "_types/browse/like/button.html" %} +
+ {% endif %} + {% if post.custom_excerpt %}
{{post.custom_excerpt|safe}} @@ -44,6 +45,8 @@ + {% endif %} + {% if post.feature_image %}