From 1ea29503100a3a1dae968169c75128680aefe0c4 Mon Sep 17 00:00:00 2001 From: giles Date: Wed, 18 Feb 2026 19:55:45 +0000 Subject: [PATCH] Remove 81 identical blog template overrides of shared templates These were duplicates of files in shared/browser/templates/ and silently prevented shared updates from taking effect (as happened with the auth nav orders link fix). 8 blog-specific overrides with genuine differences are kept. Co-Authored-By: Claude Opus 4.6 --- templates/_types/auth/_main_panel.html | 49 ---- templates/_types/auth/_newsletter_toggle.html | 17 -- templates/_types/auth/_newsletters_panel.html | 46 ---- templates/_types/auth/_oob_elements.html | 29 -- templates/_types/auth/check_email.html | 33 --- templates/_types/auth/header/_header.html | 12 - templates/_types/auth/index copy.html | 18 -- templates/_types/auth/index.html | 18 -- templates/_types/auth/login.html | 46 ---- templates/_types/blog/_card.html | 110 -------- templates/_types/blog/_card/at_bar.html | 19 -- templates/_types/blog/_card/author.html | 21 -- templates/_types/blog/_card/authors.html | 32 --- templates/_types/blog/_card/tag.html | 19 -- templates/_types/blog/_card/tag_group.html | 22 -- templates/_types/blog/_card/tags.html | 17 -- templates/_types/blog/_card_tile.html | 59 ---- templates/_types/blog/_cards.html | 111 -------- templates/_types/blog/_oob_elements.html | 40 --- .../blog/admin/tag_groups/_edit_header.html | 9 - .../admin/tag_groups/_edit_main_panel.html | 79 ------ .../blog/admin/tag_groups/_edit_oob.html | 17 -- .../_types/blog/admin/tag_groups/_header.html | 9 - .../blog/admin/tag_groups/_main_panel.html | 73 ----- .../blog/admin/tag_groups/_oob_elements.html | 16 -- .../_types/blog/admin/tag_groups/edit.html | 13 - .../_types/blog/admin/tag_groups/index.html | 20 -- templates/_types/blog/desktop/menu.html | 19 -- .../_types/blog/desktop/menu/authors.html | 62 ----- .../_types/blog/desktop/menu/tag_groups.html | 70 ----- templates/_types/blog/desktop/menu/tags.html | 59 ---- templates/_types/blog/header/_header.html | 7 - templates/_types/blog/index.html | 37 --- .../blog/mobile/_filter/_hamburger.html | 13 - .../_types/blog/mobile/_filter/summary.html | 14 - .../blog/mobile/_filter/summary/authors.html | 31 --- .../mobile/_filter/summary/tag_groups.html | 33 --- .../blog/mobile/_filter/summary/tags.html | 31 --- templates/_types/blog/not_found.html | 22 -- templates/_types/blog_drafts/_main_panel.html | 55 ---- .../_types/blog_drafts/_oob_elements.html | 12 - templates/_types/blog_drafts/index.html | 11 - templates/_types/blog_new/_main_panel.html | 259 ------------------ templates/_types/blog_new/_oob_elements.html | 12 - templates/_types/blog_new/index.html | 11 - templates/_types/menu_items/_form.html | 125 --------- templates/_types/menu_items/_list.html | 68 ----- templates/_types/menu_items/_main_panel.html | 20 -- templates/_types/menu_items/_nav_oob.html | 29 -- .../_types/menu_items/_oob_elements.html | 23 -- .../menu_items/_page_search_results.html | 44 --- .../_types/menu_items/header/_header.html | 9 - templates/_types/menu_items/index.html | 20 -- templates/_types/post/_entry_container.html | 24 -- templates/_types/post/_entry_items.html | 38 --- templates/_types/post/_main_panel.html | 62 ----- templates/_types/post/_oob_elements.html | 36 --- .../post/admin/_associated_entries.html | 50 ---- .../_types/post/admin/_calendar_view.html | 88 ------ templates/_types/post/admin/_main_panel.html | 7 - .../_types/post/admin/_nav_entries_oob.html | 14 - .../_types/post/admin/header/_header.html | 13 - templates/_types/post/index.html | 25 -- .../_types/post_entries/_main_panel.html | 48 ---- templates/_types/post_entries/_nav.html | 2 - .../_types/post_entries/_oob_elements.html | 28 -- .../_types/post_entries/header/_header.html | 17 -- templates/_types/post_entries/index.html | 19 -- .../_types/root/settings/_main_panel.html | 2 - templates/_types/root/settings/_nav.html | 5 - .../_types/root/settings/_oob_elements.html | 26 -- .../_types/root/settings/cache/_header.html | 9 - .../root/settings/cache/_main_panel.html | 14 - .../root/settings/cache/_oob_elements.html | 16 -- .../_types/root/settings/cache/index.html | 20 -- .../_types/root/settings/header/_header.html | 11 - templates/_types/root/settings/index.html | 18 -- templates/_types/snippets/_list.html | 73 ----- templates/_types/snippets/_main_panel.html | 9 - templates/_types/snippets/_oob_elements.html | 18 -- templates/_types/snippets/header/_header.html | 9 - templates/_types/snippets/index.html | 20 -- 82 files changed, 2771 deletions(-) delete mode 100644 templates/_types/auth/_main_panel.html delete mode 100644 templates/_types/auth/_newsletter_toggle.html delete mode 100644 templates/_types/auth/_newsletters_panel.html delete mode 100644 templates/_types/auth/_oob_elements.html delete mode 100644 templates/_types/auth/check_email.html delete mode 100644 templates/_types/auth/header/_header.html delete mode 100644 templates/_types/auth/index copy.html delete mode 100644 templates/_types/auth/index.html delete mode 100644 templates/_types/auth/login.html delete mode 100644 templates/_types/blog/_card.html delete mode 100644 templates/_types/blog/_card/at_bar.html delete mode 100644 templates/_types/blog/_card/author.html delete mode 100644 templates/_types/blog/_card/authors.html delete mode 100644 templates/_types/blog/_card/tag.html delete mode 100644 templates/_types/blog/_card/tag_group.html delete mode 100644 templates/_types/blog/_card/tags.html delete mode 100644 templates/_types/blog/_card_tile.html delete mode 100644 templates/_types/blog/_cards.html delete mode 100644 templates/_types/blog/_oob_elements.html delete mode 100644 templates/_types/blog/admin/tag_groups/_edit_header.html delete mode 100644 templates/_types/blog/admin/tag_groups/_edit_main_panel.html delete mode 100644 templates/_types/blog/admin/tag_groups/_edit_oob.html delete mode 100644 templates/_types/blog/admin/tag_groups/_header.html delete mode 100644 templates/_types/blog/admin/tag_groups/_main_panel.html delete mode 100644 templates/_types/blog/admin/tag_groups/_oob_elements.html delete mode 100644 templates/_types/blog/admin/tag_groups/edit.html delete mode 100644 templates/_types/blog/admin/tag_groups/index.html delete mode 100644 templates/_types/blog/desktop/menu.html delete mode 100644 templates/_types/blog/desktop/menu/authors.html delete mode 100644 templates/_types/blog/desktop/menu/tag_groups.html delete mode 100644 templates/_types/blog/desktop/menu/tags.html delete mode 100644 templates/_types/blog/header/_header.html delete mode 100644 templates/_types/blog/index.html delete mode 100644 templates/_types/blog/mobile/_filter/_hamburger.html delete mode 100644 templates/_types/blog/mobile/_filter/summary.html delete mode 100644 templates/_types/blog/mobile/_filter/summary/authors.html delete mode 100644 templates/_types/blog/mobile/_filter/summary/tag_groups.html delete mode 100644 templates/_types/blog/mobile/_filter/summary/tags.html delete mode 100644 templates/_types/blog/not_found.html delete mode 100644 templates/_types/blog_drafts/_main_panel.html delete mode 100644 templates/_types/blog_drafts/_oob_elements.html delete mode 100644 templates/_types/blog_drafts/index.html delete mode 100644 templates/_types/blog_new/_main_panel.html delete mode 100644 templates/_types/blog_new/_oob_elements.html delete mode 100644 templates/_types/blog_new/index.html delete mode 100644 templates/_types/menu_items/_form.html delete mode 100644 templates/_types/menu_items/_list.html delete mode 100644 templates/_types/menu_items/_main_panel.html delete mode 100644 templates/_types/menu_items/_nav_oob.html delete mode 100644 templates/_types/menu_items/_oob_elements.html delete mode 100644 templates/_types/menu_items/_page_search_results.html delete mode 100644 templates/_types/menu_items/header/_header.html delete mode 100644 templates/_types/menu_items/index.html delete mode 100644 templates/_types/post/_entry_container.html delete mode 100644 templates/_types/post/_entry_items.html delete mode 100644 templates/_types/post/_main_panel.html delete mode 100644 templates/_types/post/_oob_elements.html delete mode 100644 templates/_types/post/admin/_associated_entries.html delete mode 100644 templates/_types/post/admin/_calendar_view.html delete mode 100644 templates/_types/post/admin/_main_panel.html delete mode 100644 templates/_types/post/admin/_nav_entries_oob.html delete mode 100644 templates/_types/post/admin/header/_header.html delete mode 100644 templates/_types/post/index.html delete mode 100644 templates/_types/post_entries/_main_panel.html delete mode 100644 templates/_types/post_entries/_nav.html delete mode 100644 templates/_types/post_entries/_oob_elements.html delete mode 100644 templates/_types/post_entries/header/_header.html delete mode 100644 templates/_types/post_entries/index.html delete mode 100644 templates/_types/root/settings/_main_panel.html delete mode 100644 templates/_types/root/settings/_nav.html delete mode 100644 templates/_types/root/settings/_oob_elements.html delete mode 100644 templates/_types/root/settings/cache/_header.html delete mode 100644 templates/_types/root/settings/cache/_main_panel.html delete mode 100644 templates/_types/root/settings/cache/_oob_elements.html delete mode 100644 templates/_types/root/settings/cache/index.html delete mode 100644 templates/_types/root/settings/header/_header.html delete mode 100644 templates/_types/root/settings/index.html delete mode 100644 templates/_types/snippets/_list.html delete mode 100644 templates/_types/snippets/_main_panel.html delete mode 100644 templates/_types/snippets/_oob_elements.html delete mode 100644 templates/_types/snippets/header/_header.html delete mode 100644 templates/_types/snippets/index.html diff --git a/templates/_types/auth/_main_panel.html b/templates/_types/auth/_main_panel.html deleted file mode 100644 index d394dd0..0000000 --- a/templates/_types/auth/_main_panel.html +++ /dev/null @@ -1,49 +0,0 @@ -
-
- - {% if error %} -
- {{ error }} -
- {% endif %} - - {# Account header #} -
-
-

Account

- {% if g.user %} -

{{ g.user.email }}

- {% if g.user.name %} -

{{ g.user.name }}

- {% endif %} - {% endif %} -
-
- - -
-
- - {# Labels #} - {% set labels = g.user.labels if g.user is defined and g.user.labels is defined else [] %} - {% if labels %} -
-

Labels

-
- {% for label in labels %} - - {{ label.name }} - - {% endfor %} -
-
- {% endif %} - -
-
diff --git a/templates/_types/auth/_newsletter_toggle.html b/templates/_types/auth/_newsletter_toggle.html deleted file mode 100644 index 4320f58..0000000 --- a/templates/_types/auth/_newsletter_toggle.html +++ /dev/null @@ -1,17 +0,0 @@ -
- -
diff --git a/templates/_types/auth/_newsletters_panel.html b/templates/_types/auth/_newsletters_panel.html deleted file mode 100644 index 2c2c548..0000000 --- a/templates/_types/auth/_newsletters_panel.html +++ /dev/null @@ -1,46 +0,0 @@ -
-
- -

Newsletters

- - {% if newsletter_list %} -
- {% for item in newsletter_list %} -
-
-

{{ item.newsletter.name }}

- {% if item.newsletter.description %} -

{{ item.newsletter.description }}

- {% endif %} -
-
- {% if item.un %} - {% with un=item.un %} - {% include "_types/auth/_newsletter_toggle.html" %} - {% endwith %} - {% else %} - {# No subscription row yet — show an off toggle that will create one #} -
- -
- {% endif %} -
-
- {% endfor %} -
- {% else %} -

No newsletters available.

- {% endif %} - -
-
diff --git a/templates/_types/auth/_oob_elements.html b/templates/_types/auth/_oob_elements.html deleted file mode 100644 index cafb113..0000000 --- a/templates/_types/auth/_oob_elements.html +++ /dev/null @@ -1,29 +0,0 @@ -{% extends 'oob_elements.html' %} - -{# OOB elements for HTMX navigation - all elements that need updating #} - -{# Import shared OOB macros #} -{% from '_types/root/_oob_menu.html' import mobile_menu with context %} - -{# Header with app title - includes cart-mini, navigation, and market-specific header #} - -{% block oobs %} - - {% from '_types/root/_n/macros.html' import oob_header with context %} - {{oob_header('root-header-child', 'auth-header-child', '_types/auth/header/_header.html')}} - - {% from '_types/root/header/_header.html' import header_row with context %} - {{ header_row(oob=True) }} -{% endblock %} - - -{% block mobile_menu %} - {% include '_types/auth/_nav.html' %} -{% endblock %} - - -{% block content %} - {% include oob.main %} -{% endblock %} - - diff --git a/templates/_types/auth/check_email.html b/templates/_types/auth/check_email.html deleted file mode 100644 index 822b58e..0000000 --- a/templates/_types/auth/check_email.html +++ /dev/null @@ -1,33 +0,0 @@ -{% extends "_types/root/index.html" %} -{% block content %} -
-
-

Check your email

- -

- If an account exists for - {{ email }}, - you’ll receive a link to sign in. It expires in 15 minutes. -

- - {% if email_error %} - - {% endif %} - -

- - ← Back - -

-
-
-{% endblock %} diff --git a/templates/_types/auth/header/_header.html b/templates/_types/auth/header/_header.html deleted file mode 100644 index 9f9e451..0000000 --- a/templates/_types/auth/header/_header.html +++ /dev/null @@ -1,12 +0,0 @@ -{% import 'macros/links.html' as links %} -{% macro header_row(oob=False) %} - {% call links.menu_row(id='auth-row', oob=oob) %} - {% call links.link(url_for('auth.account'), hx_select_search ) %} - -
account
- {% endcall %} - {% call links.desktop_nav() %} - {% include "_types/auth/_nav.html" %} - {% endcall %} - {% endcall %} -{% endmacro %} \ No newline at end of file diff --git a/templates/_types/auth/index copy.html b/templates/_types/auth/index copy.html deleted file mode 100644 index cd4d6d3..0000000 --- a/templates/_types/auth/index copy.html +++ /dev/null @@ -1,18 +0,0 @@ -{% extends "_types/root/_index.html" %} - - -{% block root_header_child %} - {% from '_types/root/_n/macros.html' import index_row with context %} - {% call index_row('auth-header-child', '_types/auth/header/_header.html') %} - {% block auth_header_child %} - {% endblock %} - {% endcall %} -{% endblock %} - -{% block _main_mobile_menu %} - {% include "_types/auth/_nav.html" %} -{% endblock %} - -{% block content %} - {% include '_types/auth/_main_panel.html' %} -{% endblock %} diff --git a/templates/_types/auth/index.html b/templates/_types/auth/index.html deleted file mode 100644 index 3c66bf1..0000000 --- a/templates/_types/auth/index.html +++ /dev/null @@ -1,18 +0,0 @@ -{% extends oob.extends %} - - -{% block root_header_child %} - {% from '_types/root/_n/macros.html' import index_row with context %} - {% call index_row(oob.child_id, oob.header) %} - {% block auth_header_child %} - {% endblock %} - {% endcall %} -{% endblock %} - -{% block _main_mobile_menu %} - {% include oob.nav %} -{% endblock %} - -{% block content %} - {% include oob.main %} -{% endblock %} diff --git a/templates/_types/auth/login.html b/templates/_types/auth/login.html deleted file mode 100644 index dc5ef8a..0000000 --- a/templates/_types/auth/login.html +++ /dev/null @@ -1,46 +0,0 @@ -{% extends "_types/root/index.html" %} -{% block content %} -
-
-

Sign in

-

- Enter your email and we’ll email you a one-time sign-in link. -

- - {% if error %} -
- {{ error }} -
- {% endif %} - -
- -
- - -
- - -
-
-
-{% endblock %} diff --git a/templates/_types/blog/_card.html b/templates/_types/blog/_card.html deleted file mode 100644 index d5b1347..0000000 --- a/templates/_types/blog/_card.html +++ /dev/null @@ -1,110 +0,0 @@ -{% import 'macros/stickers.html' as stick %} -
- {# ❤️ like button - OUTSIDE the link, aligned with image top #} - {% 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 %} - - {% set _href=url_for('blog.post.post_detail', slug=post.slug)|host %} - -
-

- {{ post.title }} -

- - {% if post.status == "draft" %} -
- Draft - {% if post.publish_requested %} - Publish requested - {% endif %} -
- {% if post.updated_at %} -

- Updated: {{ post.updated_at.strftime("%-d %b %Y at %H:%M") }} -

- {% endif %} - {% elif post.published_at %} -

- Published: {{ post.published_at.strftime("%-d %b %Y at %H:%M") }} -

- {% endif %} - -
- - {% if post.feature_image %} -
- -
- {% endif %} - {% if post.custom_excerpt %} -

- {{ post.custom_excerpt }} -

- {% else %} - {% if post.excerpt %} -

- {{ post.excerpt }} -

- {% endif %} - {% endif %} -
- - {# Associated Entries - Scrollable list #} - {% if post.associated_entries %} -
-

Events:

-
-
- {% for entry in post.associated_entries %} - {% set _entry_path = '/' + post.slug + '/calendars/' + entry.calendar.slug + '/' + entry.start_at.year|string + '/' + entry.start_at.month|string + '/' + entry.start_at.day|string + '/entries/' + entry.id|string + '/' %} - -
{{ entry.name }}
-
- {{ entry.start_at.strftime('%a, %b %d') }} -
-
- {{ entry.start_at.strftime('%H:%M') }} - {% if entry.end_at %} – {{ entry.end_at.strftime('%H:%M') }}{% endif %} -
-
- {% endfor %} -
-
-
- - - {% endif %} - - {% include '_types/blog/_card/at_bar.html' %} - -
diff --git a/templates/_types/blog/_card/at_bar.html b/templates/_types/blog/_card/at_bar.html deleted file mode 100644 index f226d92..0000000 --- a/templates/_types/blog/_card/at_bar.html +++ /dev/null @@ -1,19 +0,0 @@ -
- {% if post.tags %} -
-
in
-
    - {% include '_types/blog/_card/tags.html' %} -
-
- {% endif %} -
- {% if post.authors %} -
-
by
-
    - {% include '_types/blog/_card/authors.html' %} -
-
- {% endif %} -
diff --git a/templates/_types/blog/_card/author.html b/templates/_types/blog/_card/author.html deleted file mode 100644 index 7ddddf7..0000000 --- a/templates/_types/blog/_card/author.html +++ /dev/null @@ -1,21 +0,0 @@ -{% macro author(author) %} - {% if author %} - {% if author.profile_image %} - {{ author.name }} - {% else %} -
- {# optional fallback circle with first letter -
- {{ author.name[:1] }} -
#} - {% endif %} - - - {{ author.name }} - - {% endif %} -{% endmacro %} \ No newline at end of file diff --git a/templates/_types/blog/_card/authors.html b/templates/_types/blog/_card/authors.html deleted file mode 100644 index 5b8911d..0000000 --- a/templates/_types/blog/_card/authors.html +++ /dev/null @@ -1,32 +0,0 @@ -{# --- AUTHORS LIST STARTS HERE --- #} - {% if post.authors and post.authors|length %} - {% for a in post.authors %} - {% for author in authors if author.slug==a.slug %} -
  • - - {% if author.profile_image %} - {{ author.name }} - {% else %} - {# optional fallback circle with first letter #} -
    - {{ author.name[:1] }} -
    - {% endif %} - - - {{ author.name }} - -
    -
  • - {% endfor %} - {% endfor %} - {% endif %} - - {# --- AUTHOR LIST ENDS HERE --- #} \ No newline at end of file diff --git a/templates/_types/blog/_card/tag.html b/templates/_types/blog/_card/tag.html deleted file mode 100644 index 137cb0c..0000000 --- a/templates/_types/blog/_card/tag.html +++ /dev/null @@ -1,19 +0,0 @@ -{% macro tag(tag) %} - {% if tag %} - {% if tag.feature_image %} - {{ tag.name }} - {% else %} -
    - {{ tag.name[:1] }} -
    - {% endif %} - - - {{ tag.name }} - - {% endif %} -{% endmacro %} \ No newline at end of file diff --git a/templates/_types/blog/_card/tag_group.html b/templates/_types/blog/_card/tag_group.html deleted file mode 100644 index 21c9974..0000000 --- a/templates/_types/blog/_card/tag_group.html +++ /dev/null @@ -1,22 +0,0 @@ -{% macro tag_group(group) %} - {% if group %} - {% if group.feature_image %} - {{ group.name }} - {% else %} -
    - {{ group.name[:1] }} -
    - {% endif %} - - - {{ group.name }} - - {% endif %} -{% endmacro %} diff --git a/templates/_types/blog/_card/tags.html b/templates/_types/blog/_card/tags.html deleted file mode 100644 index 2ea7ad1..0000000 --- a/templates/_types/blog/_card/tags.html +++ /dev/null @@ -1,17 +0,0 @@ -{% import '_types/blog/_card/tag.html' as dotag %} -{# --- TAG LIST STARTS HERE --- #} - {% if post.tags and post.tags|length %} - {% for t in post.tags %} - {% for tag in tags if tag.slug==t.slug %} -
  • - - {{dotag.tag(tag)}} - -
  • - {% endfor %} - {% endfor %} - {% endif %} - {# --- TAG LIST ENDS HERE --- #} \ No newline at end of file diff --git a/templates/_types/blog/_card_tile.html b/templates/_types/blog/_card_tile.html deleted file mode 100644 index f03ca16..0000000 --- a/templates/_types/blog/_card_tile.html +++ /dev/null @@ -1,59 +0,0 @@ -
    - {% set _href=url_for('blog.post.post_detail', slug=post.slug)|host %} - - {% if post.feature_image %} -
    - -
    - {% endif %} - -
    -

    - {{ post.title }} -

    - - {% if post.status == "draft" %} -
    - Draft - {% if post.publish_requested %} - Publish requested - {% endif %} -
    - {% if post.updated_at %} -

    - Updated: {{ post.updated_at.strftime("%-d %b %Y at %H:%M") }} -

    - {% endif %} - {% elif post.published_at %} -

    - Published: {{ post.published_at.strftime("%-d %b %Y at %H:%M") }} -

    - {% endif %} - - {% if post.custom_excerpt %} -

    - {{ post.custom_excerpt }} -

    - {% elif post.excerpt %} -

    - {{ post.excerpt }} -

    - {% endif %} -
    -
    - - {% include '_types/blog/_card/at_bar.html' %} -
    diff --git a/templates/_types/blog/_cards.html b/templates/_types/blog/_cards.html deleted file mode 100644 index 82eee98..0000000 --- a/templates/_types/blog/_cards.html +++ /dev/null @@ -1,111 +0,0 @@ -{% for post in posts %} - {% if view == 'tile' %} - {% include "_types/blog/_card_tile.html" %} - {% else %} - {% include "_types/blog/_card.html" %} - {% endif %} -{% endfor %} -{% if page < total_pages|int %} - - - - - -{% else %} -
    End of results
    -{% endif %} - diff --git a/templates/_types/blog/_oob_elements.html b/templates/_types/blog/_oob_elements.html deleted file mode 100644 index 2aa02cb..0000000 --- a/templates/_types/blog/_oob_elements.html +++ /dev/null @@ -1,40 +0,0 @@ -{% extends 'oob_elements.html' %} - -{# OOB elements for HTMX navigation - all elements that need updating #} - -{# Import shared OOB macros #} -{% from '_types/root/header/_oob_.html' import root_header with context %} -{% from '_types/root/_oob_menu.html' import mobile_menu with context %} - - -{% block oobs %} - - {% from '_types/root/_n/macros.html' import oob_header with context %} - {{oob_header('root-header-child', 'blog-header-child', '_types/blog/header/_header.html')}} - - {% from '_types/root/header/_header.html' import header_row with context %} - {{ header_row(oob=True) }} -{% endblock %} - - - -{# Filter container - blog doesn't have child_summary but still needs this element #} -{% block filter %} - {% include "_types/blog/mobile/_filter/summary.html" %} -{% endblock %} - -{# Aside with filters #} -{% block aside %} - {% include "_types/blog/desktop/menu.html" %} -{% endblock %} - - -{% block mobile_menu %} - {% include '_types/root/_nav.html' %} - {% include '_types/root/_nav_panel.html' %} -{% endblock %} - - -{% block content %} - {% include '_types/blog/_main_panel.html' %} -{% endblock %} diff --git a/templates/_types/blog/admin/tag_groups/_edit_header.html b/templates/_types/blog/admin/tag_groups/_edit_header.html deleted file mode 100644 index ade4ee9..0000000 --- a/templates/_types/blog/admin/tag_groups/_edit_header.html +++ /dev/null @@ -1,9 +0,0 @@ -{% import 'macros/links.html' as links %} -{% macro header_row(oob=False) %} - {% call links.menu_row(id='tag-groups-edit-row', oob=oob) %} - {% from 'macros/admin_nav.html' import admin_nav_item %} - {{ admin_nav_item(url_for('blog.tag_groups_admin.edit', id=group.id), 'pencil', group.name, select_colours, aclass='') }} - {% call links.desktop_nav() %} - {% endcall %} - {% endcall %} -{% endmacro %} diff --git a/templates/_types/blog/admin/tag_groups/_edit_main_panel.html b/templates/_types/blog/admin/tag_groups/_edit_main_panel.html deleted file mode 100644 index 7d1fa96..0000000 --- a/templates/_types/blog/admin/tag_groups/_edit_main_panel.html +++ /dev/null @@ -1,79 +0,0 @@ -
    - - {# --- Edit group form --- #} -
    - - -
    -
    - - -
    -
    -
    - - -
    -
    - - -
    -
    -
    - - -
    -
    - - {# --- Tag checkboxes --- #} -
    - -
    - {% for tag in all_tags %} - - {% endfor %} -
    -
    - -
    - -
    -
    - - {# --- Delete form --- #} -
    - - -
    - -
    diff --git a/templates/_types/blog/admin/tag_groups/_edit_oob.html b/templates/_types/blog/admin/tag_groups/_edit_oob.html deleted file mode 100644 index 116bc7b..0000000 --- a/templates/_types/blog/admin/tag_groups/_edit_oob.html +++ /dev/null @@ -1,17 +0,0 @@ -{% extends 'oob_elements.html' %} - -{% block oobs %} - {% from '_types/root/_n/macros.html' import oob_header with context %} - {{oob_header('tag-groups-header-child', 'tag-groups-edit-child', '_types/blog/admin/tag_groups/_edit_header.html')}} - {{oob_header('root-settings-header-child', 'tag-groups-header-child', '_types/blog/admin/tag_groups/_header.html')}} - - {% from '_types/root/settings/header/_header.html' import header_row with context %} - {{header_row(oob=True)}} -{% endblock %} - -{% block mobile_menu %} -{% endblock %} - -{% block content %} - {% include '_types/blog/admin/tag_groups/_edit_main_panel.html' %} -{% endblock %} diff --git a/templates/_types/blog/admin/tag_groups/_header.html b/templates/_types/blog/admin/tag_groups/_header.html deleted file mode 100644 index d9c3095..0000000 --- a/templates/_types/blog/admin/tag_groups/_header.html +++ /dev/null @@ -1,9 +0,0 @@ -{% import 'macros/links.html' as links %} -{% macro header_row(oob=False) %} - {% call links.menu_row(id='tag-groups-row', oob=oob) %} - {% from 'macros/admin_nav.html' import admin_nav_item %} - {{ admin_nav_item(url_for('blog.tag_groups_admin.index'), 'tags', 'Tag Groups', select_colours, aclass='') }} - {% call links.desktop_nav() %} - {% endcall %} - {% endcall %} -{% endmacro %} diff --git a/templates/_types/blog/admin/tag_groups/_main_panel.html b/templates/_types/blog/admin/tag_groups/_main_panel.html deleted file mode 100644 index 1c8b8f4..0000000 --- a/templates/_types/blog/admin/tag_groups/_main_panel.html +++ /dev/null @@ -1,73 +0,0 @@ -
    - - {# --- Create new group form --- #} -
    - -

    New Group

    -
    - - - -
    - - -
    - - {# --- Existing groups list --- #} - {% if groups %} -
      - {% for group in groups %} -
    • - {% if group.feature_image %} - {{ group.name }} - {% else %} -
      - {{ group.name[:1] }} -
      - {% endif %} -
      - - {{ group.name }} - - {{ group.slug }} -
      - order: {{ group.sort_order }} -
    • - {% endfor %} -
    - {% else %} -

    No tag groups yet.

    - {% endif %} - - {# --- Unassigned tags --- #} - {% if unassigned_tags %} -
    -

    Unassigned Tags ({{ unassigned_tags|length }})

    -
    - {% for tag in unassigned_tags %} - - {{ tag.name }} - - {% endfor %} -
    -
    - {% endif %} - -
    diff --git a/templates/_types/blog/admin/tag_groups/_oob_elements.html b/templates/_types/blog/admin/tag_groups/_oob_elements.html deleted file mode 100644 index cb00363..0000000 --- a/templates/_types/blog/admin/tag_groups/_oob_elements.html +++ /dev/null @@ -1,16 +0,0 @@ -{% extends 'oob_elements.html' %} - -{% block oobs %} - {% from '_types/root/_n/macros.html' import oob_header with context %} - {{oob_header('root-settings-header-child', 'tag-groups-header-child', '_types/blog/admin/tag_groups/_header.html')}} - - {% from '_types/root/settings/header/_header.html' import header_row with context %} - {{header_row(oob=True)}} -{% endblock %} - -{% block mobile_menu %} -{% endblock %} - -{% block content %} - {% include '_types/blog/admin/tag_groups/_main_panel.html' %} -{% endblock %} diff --git a/templates/_types/blog/admin/tag_groups/edit.html b/templates/_types/blog/admin/tag_groups/edit.html deleted file mode 100644 index 5fefbc6..0000000 --- a/templates/_types/blog/admin/tag_groups/edit.html +++ /dev/null @@ -1,13 +0,0 @@ -{% extends '_types/blog/admin/tag_groups/index.html' %} - -{% block tag_groups_header_child %} - {% from '_types/root/_n/macros.html' import header with context %} - {% call header() %} - {% from '_types/blog/admin/tag_groups/_edit_header.html' import header_row with context %} - {{ header_row() }} - {% endcall %} -{% endblock %} - -{% block content %} - {% include '_types/blog/admin/tag_groups/_edit_main_panel.html' %} -{% endblock %} diff --git a/templates/_types/blog/admin/tag_groups/index.html b/templates/_types/blog/admin/tag_groups/index.html deleted file mode 100644 index 680b051..0000000 --- a/templates/_types/blog/admin/tag_groups/index.html +++ /dev/null @@ -1,20 +0,0 @@ -{% extends '_types/root/settings/index.html' %} - -{% block root_settings_header_child %} - {% from '_types/root/_n/macros.html' import header with context %} - {% call header() %} - {% from '_types/blog/admin/tag_groups/_header.html' import header_row with context %} - {{ header_row() }} -
    - {% block tag_groups_header_child %} - {% endblock %} -
    - {% endcall %} -{% endblock %} - -{% block content %} - {% include '_types/blog/admin/tag_groups/_main_panel.html' %} -{% endblock %} - -{% block _main_mobile_menu %} -{% endblock %} diff --git a/templates/_types/blog/desktop/menu.html b/templates/_types/blog/desktop/menu.html deleted file mode 100644 index 57dba58..0000000 --- a/templates/_types/blog/desktop/menu.html +++ /dev/null @@ -1,19 +0,0 @@ -{% import '_types/browse/desktop/_filter/search.html' as s %} -{{ s.search(current_local_href, search, search_count, hx_select) }} -{% include '_types/blog/_action_buttons.html' %} -
    - {% include '_types/blog/desktop/menu/tag_groups.html' %} - {% include '_types/blog/desktop/menu/authors.html' %} -
    - -
    - -
    - - \ No newline at end of file diff --git a/templates/_types/blog/desktop/menu/authors.html b/templates/_types/blog/desktop/menu/authors.html deleted file mode 100644 index de939e0..0000000 --- a/templates/_types/blog/desktop/menu/authors.html +++ /dev/null @@ -1,62 +0,0 @@ - {% import '_types/blog/_card/author.html' as doauthor %} - - {# Author filter bar #} - - diff --git a/templates/_types/blog/desktop/menu/tag_groups.html b/templates/_types/blog/desktop/menu/tag_groups.html deleted file mode 100644 index e23a879..0000000 --- a/templates/_types/blog/desktop/menu/tag_groups.html +++ /dev/null @@ -1,70 +0,0 @@ - {# Tag group filter bar #} - diff --git a/templates/_types/blog/desktop/menu/tags.html b/templates/_types/blog/desktop/menu/tags.html deleted file mode 100644 index c20b5bc..0000000 --- a/templates/_types/blog/desktop/menu/tags.html +++ /dev/null @@ -1,59 +0,0 @@ - {% import '_types/blog/_card/tag.html' as dotag %} - - {# Tag filter bar #} - - diff --git a/templates/_types/blog/header/_header.html b/templates/_types/blog/header/_header.html deleted file mode 100644 index 67325b9..0000000 --- a/templates/_types/blog/header/_header.html +++ /dev/null @@ -1,7 +0,0 @@ - -{% import 'macros/links.html' as links %} -{% macro header_row(oob=False) %} - {% call links.menu_row(id='blog-row', oob=oob) %} -
    - {% endcall %} -{% endmacro %} \ No newline at end of file diff --git a/templates/_types/blog/index.html b/templates/_types/blog/index.html deleted file mode 100644 index 5978020..0000000 --- a/templates/_types/blog/index.html +++ /dev/null @@ -1,37 +0,0 @@ -{% extends '_types/root/_index.html' %} - -{% block meta %} - {{ super() }} - -{% endblock %} - -{% block root_header_child %} - {% from '_types/root/_n/macros.html' import index_row with context %} - {% call index_row('root-blog-header', '_types/blog/header/_header.html') %} - {% block root_blog_header %} - {% endblock %} - {% endcall %} -{% endblock %} - - -{% block aside %} - {% include "_types/blog/desktop/menu.html" %} -{% endblock %} - -{% block filter %} - {% include "_types/blog/mobile/_filter/summary.html" %} -{% endblock %} - -{% block content %} - {% include '_types/blog/_main_panel.html' %} -{% endblock %} diff --git a/templates/_types/blog/mobile/_filter/_hamburger.html b/templates/_types/blog/mobile/_filter/_hamburger.html deleted file mode 100644 index 10e0b9c..0000000 --- a/templates/_types/blog/mobile/_filter/_hamburger.html +++ /dev/null @@ -1,13 +0,0 @@ -
    - - - - - - - - -
    diff --git a/templates/_types/blog/mobile/_filter/summary.html b/templates/_types/blog/mobile/_filter/summary.html deleted file mode 100644 index 4ed013b..0000000 --- a/templates/_types/blog/mobile/_filter/summary.html +++ /dev/null @@ -1,14 +0,0 @@ -{% import 'macros/layout.html' as layout %} - -{% call layout.details('/filter', 'md:hidden') %} - {% call layout.filter_summary("filter-summary-mobile", current_local_href, search, search_count, hx_select) %} - {% include '_types/blog/mobile/_filter/summary/tag_groups.html' %} - {% include '_types/blog/mobile/_filter/summary/authors.html' %} - {% endcall %} - {% include '_types/blog/_action_buttons.html' %} -
    - {% include '_types/blog/desktop/menu/tag_groups.html' %} - {% include '_types/blog/desktop/menu/authors.html' %} -
    -{% endcall %} - \ No newline at end of file diff --git a/templates/_types/blog/mobile/_filter/summary/authors.html b/templates/_types/blog/mobile/_filter/summary/authors.html deleted file mode 100644 index 32796d9..0000000 --- a/templates/_types/blog/mobile/_filter/summary/authors.html +++ /dev/null @@ -1,31 +0,0 @@ -{% if selected_authors and selected_authors|length %} - -{% endif %} \ No newline at end of file diff --git a/templates/_types/blog/mobile/_filter/summary/tag_groups.html b/templates/_types/blog/mobile/_filter/summary/tag_groups.html deleted file mode 100644 index 7bf142e..0000000 --- a/templates/_types/blog/mobile/_filter/summary/tag_groups.html +++ /dev/null @@ -1,33 +0,0 @@ -{% if selected_groups and selected_groups|length %} - -{% endif %} diff --git a/templates/_types/blog/mobile/_filter/summary/tags.html b/templates/_types/blog/mobile/_filter/summary/tags.html deleted file mode 100644 index df6169d..0000000 --- a/templates/_types/blog/mobile/_filter/summary/tags.html +++ /dev/null @@ -1,31 +0,0 @@ -{% if selected_tags and selected_tags|length %} - -{% endif %} \ No newline at end of file diff --git a/templates/_types/blog/not_found.html b/templates/_types/blog/not_found.html deleted file mode 100644 index 525c188..0000000 --- a/templates/_types/blog/not_found.html +++ /dev/null @@ -1,22 +0,0 @@ -{% extends '_types/root/_index.html' %} - -{% block content %} -
    -
    📝
    -

    Post Not Found

    -

    - The post "{{ slug }}" could not be found. -

    - - ← Back to Blog - -
    -{% endblock %} diff --git a/templates/_types/blog_drafts/_main_panel.html b/templates/_types/blog_drafts/_main_panel.html deleted file mode 100644 index 8cb0b7a..0000000 --- a/templates/_types/blog_drafts/_main_panel.html +++ /dev/null @@ -1,55 +0,0 @@ -
    - -
    -

    Drafts

    - {% set new_href = url_for('blog.new_post')|host %} - - New Post - -
    - - {% if drafts %} - - {% else %} -

    No drafts yet.

    - {% endif %} - -
    diff --git a/templates/_types/blog_drafts/_oob_elements.html b/templates/_types/blog_drafts/_oob_elements.html deleted file mode 100644 index 8d9790b..0000000 --- a/templates/_types/blog_drafts/_oob_elements.html +++ /dev/null @@ -1,12 +0,0 @@ -{% extends 'oob_elements.html' %} - -{% from '_types/root/_oob_menu.html' import mobile_menu with context %} - -{% block oobs %} - {% from '_types/blog/header/_header.html' import header_row with context %} - {{ header_row(oob=True) }} -{% endblock %} - -{% block content %} - {% include '_types/blog_drafts/_main_panel.html' %} -{% endblock %} diff --git a/templates/_types/blog_drafts/index.html b/templates/_types/blog_drafts/index.html deleted file mode 100644 index 6ce38f1..0000000 --- a/templates/_types/blog_drafts/index.html +++ /dev/null @@ -1,11 +0,0 @@ -{% extends '_types/root/_index.html' %} - -{% block root_header_child %} - {% from '_types/root/_n/macros.html' import index_row with context %} - {% call index_row('root-blog-header', '_types/blog/header/_header.html') %} - {% endcall %} -{% endblock %} - -{% block content %} - {% include '_types/blog_drafts/_main_panel.html' %} -{% endblock %} diff --git a/templates/_types/blog_new/_main_panel.html b/templates/_types/blog_new/_main_panel.html deleted file mode 100644 index 5523068..0000000 --- a/templates/_types/blog_new/_main_panel.html +++ /dev/null @@ -1,259 +0,0 @@ -{# ── Error banner ── #} -{% if save_error %} -
    - Save failed: {{ save_error }} -
    -{% endif %} - -
    - - - - - - {# ── Feature image ── #} -
    - {# Empty state: add link #} -
    - -
    - - {# Filled state: image preview + controls #} - - - {# Upload spinner overlay #} - - - {# Hidden file input #} - -
    - - {# ── Title ── #} - - - {# ── Excerpt ── #} - - - {# ── Editor mount point ── #} -
    - - {# ── Status + Save footer ── #} -
    - - - -
    -
    - -{# ── Koenig editor assets ── #} - - - - diff --git a/templates/_types/blog_new/_oob_elements.html b/templates/_types/blog_new/_oob_elements.html deleted file mode 100644 index 61e78f5..0000000 --- a/templates/_types/blog_new/_oob_elements.html +++ /dev/null @@ -1,12 +0,0 @@ -{% extends 'oob_elements.html' %} - -{% from '_types/root/_oob_menu.html' import mobile_menu with context %} - -{% block oobs %} - {% from '_types/blog/header/_header.html' import header_row with context %} - {{ header_row(oob=True) }} -{% endblock %} - -{% block content %} - {% include '_types/blog_new/_main_panel.html' %} -{% endblock %} diff --git a/templates/_types/blog_new/index.html b/templates/_types/blog_new/index.html deleted file mode 100644 index 3c802d4..0000000 --- a/templates/_types/blog_new/index.html +++ /dev/null @@ -1,11 +0,0 @@ -{% extends '_types/root/_index.html' %} - -{% block root_header_child %} - {% from '_types/root/_n/macros.html' import index_row with context %} - {% call index_row('root-blog-header', '_types/blog/header/_header.html') %} - {% endcall %} -{% endblock %} - -{% block content %} - {% include '_types/blog_new/_main_panel.html' %} -{% endblock %} diff --git a/templates/_types/menu_items/_form.html b/templates/_types/menu_items/_form.html deleted file mode 100644 index 8eed1c0..0000000 --- a/templates/_types/menu_items/_form.html +++ /dev/null @@ -1,125 +0,0 @@ - - - diff --git a/templates/_types/menu_items/_list.html b/templates/_types/menu_items/_list.html deleted file mode 100644 index 3892f07..0000000 --- a/templates/_types/menu_items/_list.html +++ /dev/null @@ -1,68 +0,0 @@ -
    - {% if menu_items %} -
    - {% for item in menu_items %} -
    - {# Drag handle #} -
    - -
    - - {# Page image #} - {% if item.feature_image %} - {{ item.label }} - {% else %} -
    - {% endif %} - - {# Page title #} -
    -
    {{ item.label }}
    -
    {{ item.slug }}
    -
    - - {# Sort order #} -
    - Order: {{ item.sort_order }} -
    - - {# Actions #} -
    - - -
    -
    - {% endfor %} -
    - {% else %} -
    - -

    No menu items yet. Add one to get started!

    -
    - {% endif %} -
    diff --git a/templates/_types/menu_items/_main_panel.html b/templates/_types/menu_items/_main_panel.html deleted file mode 100644 index bc502dd..0000000 --- a/templates/_types/menu_items/_main_panel.html +++ /dev/null @@ -1,20 +0,0 @@ -
    -
    - -
    - - {# Form container #} - - - {# Menu items list #} - -
    diff --git a/templates/_types/menu_items/_nav_oob.html b/templates/_types/menu_items/_nav_oob.html deleted file mode 100644 index 3dfe411..0000000 --- a/templates/_types/menu_items/_nav_oob.html +++ /dev/null @@ -1,29 +0,0 @@ -{% set _app_slugs = {'cart': cart_url('/')} %} - diff --git a/templates/_types/menu_items/_oob_elements.html b/templates/_types/menu_items/_oob_elements.html deleted file mode 100644 index c242593..0000000 --- a/templates/_types/menu_items/_oob_elements.html +++ /dev/null @@ -1,23 +0,0 @@ -{% extends 'oob_elements.html' %} - -{# OOB elements for HTMX navigation - all elements that need updating #} - -{# Import shared OOB macros #} - -{% block oobs %} - {% from '_types/root/_n/macros.html' import oob_header with context %} - {{oob_header('root-settings-header-child', 'menu_items-header-child', '_types/menu_items/header/_header.html')}} - - {% from '_types/root/settings/header/_header.html' import header_row with context %} - {{header_row(oob=True)}} - -{% endblock %} - -{% block mobile_menu %} -{#% include '_types/root/settings/_nav.html' %#} -{% endblock %} - -{% block content %} - {% include '_types/menu_items/_main_panel.html' %} -{% endblock %} - diff --git a/templates/_types/menu_items/_page_search_results.html b/templates/_types/menu_items/_page_search_results.html deleted file mode 100644 index df36d0d..0000000 --- a/templates/_types/menu_items/_page_search_results.html +++ /dev/null @@ -1,44 +0,0 @@ -{% if pages %} -
    - {% for post in pages %} -
    - - {# Page image #} - {% if post.feature_image %} - {{ post.title }} - {% else %} -
    - {% endif %} - - {# Page info #} -
    -
    {{ post.title }}
    -
    {{ post.slug }}
    -
    -
    - {% endfor %} - - {# Infinite scroll sentinel #} - {% if has_more %} -
    - Loading more... -
    - {% endif %} -
    -{% elif query %} -
    - No pages found matching "{{ query }}" -
    -{% endif %} diff --git a/templates/_types/menu_items/header/_header.html b/templates/_types/menu_items/header/_header.html deleted file mode 100644 index 55a18d6..0000000 --- a/templates/_types/menu_items/header/_header.html +++ /dev/null @@ -1,9 +0,0 @@ -{% import 'macros/links.html' as links %} -{% macro header_row(oob=False) %} - {% call links.menu_row(id='menu_items-row', oob=oob) %} - {% from 'macros/admin_nav.html' import admin_nav_item %} - {{ admin_nav_item(url_for('menu_items.list_menu_items'), 'bars', 'Menu Items', select_colours, aclass='') }} - {% call links.desktop_nav() %} - {% endcall %} - {% endcall %} -{% endmacro %} diff --git a/templates/_types/menu_items/index.html b/templates/_types/menu_items/index.html deleted file mode 100644 index 5bcf7da..0000000 --- a/templates/_types/menu_items/index.html +++ /dev/null @@ -1,20 +0,0 @@ -{% extends '_types/root/settings/index.html' %} - -{% block root_settings_header_child %} - {% from '_types/root/_n/macros.html' import header with context %} - {% call header() %} - {% from '_types/menu_items/header/_header.html' import header_row with context %} - {{ header_row() }} - - {% endcall %} -{% endblock %} - -{% block content %} - {% include '_types/menu_items/_main_panel.html' %} -{% endblock %} - -{% block _main_mobile_menu %} -{% endblock %} diff --git a/templates/_types/post/_entry_container.html b/templates/_types/post/_entry_container.html deleted file mode 100644 index 3c3965a..0000000 --- a/templates/_types/post/_entry_container.html +++ /dev/null @@ -1,24 +0,0 @@ -
    -
    - {% include '_types/post/_entry_items.html' with context %} -
    -
    - - diff --git a/templates/_types/post/_entry_items.html b/templates/_types/post/_entry_items.html deleted file mode 100644 index 3a7b04f..0000000 --- a/templates/_types/post/_entry_items.html +++ /dev/null @@ -1,38 +0,0 @@ -{# Get entries from either direct variable or associated_entries dict #} -{% set entry_list = entries if entries is defined else (associated_entries.entries if associated_entries is defined else []) %} -{% set current_page = page if page is defined else (associated_entries.page if associated_entries is defined else 1) %} -{% set has_more_entries = has_more if has_more is defined else (associated_entries.has_more if associated_entries is defined else False) %} - -{% for entry in entry_list %} - {% set _entry_path = '/' + post.slug + '/calendars/' + entry.calendar.slug + '/' + entry.start_at.year|string + '/' + entry.start_at.month|string + '/' + entry.start_at.day|string + '/entries/' + entry.id|string + '/' %} - - {% if entry.calendar.post.feature_image %} - {{ entry.calendar.post.title }} - {% else %} -
    - {% endif %} -
    -
    {{ entry.name }}
    -
    - {{ entry.start_at.strftime('%b %d, %Y at %H:%M') }} - {% if entry.end_at %} – {{ entry.end_at.strftime('%H:%M') }}{% endif %} -
    -
    -
    -{% endfor %} - -{# Load more entries one at a time until container is full #} -{% if has_more_entries %} -
    -
    -{% endif %} diff --git a/templates/_types/post/_main_panel.html b/templates/_types/post/_main_panel.html deleted file mode 100644 index 318d234..0000000 --- a/templates/_types/post/_main_panel.html +++ /dev/null @@ -1,62 +0,0 @@ -{# Main panel fragment for HTMX navigation - post 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 #} - {% if post.status == "draft" %} -
    - Draft - {% if post.publish_requested %} - Publish requested - {% endif %} - {% set is_admin = (g.get("rights") or {}).get("admin") %} - {% if is_admin or (g.user and post.user_id == g.user.id) %} - {% set edit_href = url_for('blog.post.admin.edit', slug=post.slug)|host %} - - Edit - - {% endif %} -
    - {% endif %} - - {% if post.custom_excerpt %} -
    - {{post.custom_excerpt|safe}} -
    - {% endif %} - - {% if post.feature_image %} -
    - -
    - {% endif %} -
    - {% if post.html %} - {{post.html|safe}} - {% endif %} -
    -
    -
    diff --git a/templates/_types/post/_oob_elements.html b/templates/_types/post/_oob_elements.html deleted file mode 100644 index d8bda2c..0000000 --- a/templates/_types/post/_oob_elements.html +++ /dev/null @@ -1,36 +0,0 @@ -{% extends 'oob_elements.html' %} - - -{# OOB elements for HTMX navigation - all elements that need updating #} -{# Import shared OOB macros #} -{% from '_types/root/header/_oob.html' import root_header_start, root_header_end with context %} -{% from '_types/root/_oob_menu.html' import mobile_menu with context %} - - - -{% block oobs %} - {% from '_types/root/header/_header.html' import header_row with context %} - {{ header_row(oob=True) }} -{% endblock %} - -{% from '_types/root/_n/macros.html' import header with context %} -{% call header(id='root-header-child', oob=True) %} - {% call header() %} - {% from '_types/post/header/_header.html' import header_row with context %} - {{header_row()}} -
    - -
    - {% endcall %} -{% endcall %} - - -{# Mobile menu #} - -{% block mobile_menu %} - {% include '_types/post/_nav.html' %} -{% endblock %} - -{% block content %} - {% include '_types/post/_main_panel.html' %} -{% endblock %} diff --git a/templates/_types/post/admin/_associated_entries.html b/templates/_types/post/admin/_associated_entries.html deleted file mode 100644 index d9fe853..0000000 --- a/templates/_types/post/admin/_associated_entries.html +++ /dev/null @@ -1,50 +0,0 @@ -
    -

    Associated Entries

    - {% if associated_entry_ids %} -
    - {% for calendar in all_calendars %} - {% for entry in calendar.entries %} - {% if entry.id in associated_entry_ids and entry.deleted_at is none %} - - {% endif %} - {% endfor %} - {% endfor %} -
    - {% else %} -
    No entries associated yet. Browse calendars below to add entries.
    - {% endif %} -
    diff --git a/templates/_types/post/admin/_calendar_view.html b/templates/_types/post/admin/_calendar_view.html deleted file mode 100644 index 1aa5734..0000000 --- a/templates/_types/post/admin/_calendar_view.html +++ /dev/null @@ -1,88 +0,0 @@ -
    - {# Month/year navigation #} -
    - -
    - - {# Calendar grid #} -
    - - -
    - {% for week in weeks %} - {% for day in week %} -
    -
    {{ day.date.day }}
    - - {# Entries for this day #} -
    - {% for e in month_entries %} - {% if e.start_at.date() == day.date and e.deleted_at is none %} - {% if e.id in associated_entry_ids %} - {# Associated entry - show with delete button #} -
    - {{ e.name }} - -
    - {% else %} - {# Non-associated entry - clickable to add #} - - {% endif %} - {% endif %} - {% endfor %} -
    -
    - {% endfor %} - {% endfor %} -
    -
    -
    diff --git a/templates/_types/post/admin/_main_panel.html b/templates/_types/post/admin/_main_panel.html deleted file mode 100644 index 58d5238..0000000 --- a/templates/_types/post/admin/_main_panel.html +++ /dev/null @@ -1,7 +0,0 @@ -{# Main panel fragment for HTMX navigation - post admin #} -
    -
    -
    diff --git a/templates/_types/post/admin/_nav_entries_oob.html b/templates/_types/post/admin/_nav_entries_oob.html deleted file mode 100644 index cc6d3b8..0000000 --- a/templates/_types/post/admin/_nav_entries_oob.html +++ /dev/null @@ -1,14 +0,0 @@ -{# OOB swap for nav entries and calendars when toggling associations or editing calendars #} -{% import 'macros/links.html' as links %} - -{# Associated Entries and Calendars - vertical on mobile, horizontal with arrows on desktop #} -{% if (associated_entries and associated_entries.entries) or calendars %} -
    - {% include '_types/post/admin/_nav_entries.html' %} -
    -{% else %} - {# Empty placeholder to remove nav items when all are disassociated/deleted #} -
    -{% endif %} diff --git a/templates/_types/post/admin/header/_header.html b/templates/_types/post/admin/header/_header.html deleted file mode 100644 index 2708e4f..0000000 --- a/templates/_types/post/admin/header/_header.html +++ /dev/null @@ -1,13 +0,0 @@ -{% import 'macros/links.html' as links %} -{% macro header_row(oob=False) %} - {% call links.menu_row(id='post-admin-row', oob=oob) %} - {% call links.link( - url_for('blog.post.admin.admin', slug=post.slug), - hx_select_search) %} - {{ links.admin() }} - {% endcall %} - {% call links.desktop_nav() %} - {% include '_types/post/admin/_nav.html' %} - {% endcall %} - {% endcall %} -{% endmacro %} \ No newline at end of file diff --git a/templates/_types/post/index.html b/templates/_types/post/index.html deleted file mode 100644 index 56ed99c..0000000 --- a/templates/_types/post/index.html +++ /dev/null @@ -1,25 +0,0 @@ -{% extends '_types/root/_index.html' %} -{% import 'macros/layout.html' as layout %} -{% block meta %} - {% include '_types/post/_meta.html' %} -{% endblock %} - -{% block root_header_child %} - {% from '_types/root/_n/macros.html' import index_row with context %} - {% call index_row('post-header-child', '_types/post/header/_header.html') %} - {% block post_header_child %} - {% endblock %} - {% endcall %} -{% endblock %} - -{% block _main_mobile_menu %} - {% include '_types/post/_nav.html' %} -{% endblock %} - - -{% block aside %} -{% endblock %} - -{% block content %} - {% include '_types/post/_main_panel.html' %} -{% endblock %} diff --git a/templates/_types/post_entries/_main_panel.html b/templates/_types/post_entries/_main_panel.html deleted file mode 100644 index 342041e..0000000 --- a/templates/_types/post_entries/_main_panel.html +++ /dev/null @@ -1,48 +0,0 @@ -
    - - {# Associated Entries List #} - {% include '_types/post/admin/_associated_entries.html' %} - - {# Calendars Browser #} -
    -

    Browse Calendars

    - {% for calendar in all_calendars %} -
    - - {% if calendar.post.feature_image %} - {{ calendar.post.title }} - {% else %} -
    - {% endif %} -
    -
    - - {{ calendar.name }} -
    -
    - {{ calendar.post.title }} -
    -
    -
    -
    -
    Loading calendar...
    -
    -
    - {% else %} -
    No calendars found.
    - {% endfor %} -
    -
    \ No newline at end of file diff --git a/templates/_types/post_entries/_nav.html b/templates/_types/post_entries/_nav.html deleted file mode 100644 index f5c504d..0000000 --- a/templates/_types/post_entries/_nav.html +++ /dev/null @@ -1,2 +0,0 @@ -{% from 'macros/admin_nav.html' import placeholder_nav %} -{{ placeholder_nav() }} diff --git a/templates/_types/post_entries/_oob_elements.html b/templates/_types/post_entries/_oob_elements.html deleted file mode 100644 index 3ef5559..0000000 --- a/templates/_types/post_entries/_oob_elements.html +++ /dev/null @@ -1,28 +0,0 @@ -{% extends 'oob_elements.html' %} - -{# OOB elements for HTMX navigation - all elements that need updating #} - -{# Import shared OOB macros #} -{% from '_types/root/_oob_menu.html' import mobile_menu with context %} - - -{% block oobs %} - - {% from '_types/root/_n/macros.html' import oob_header with context %} - {{oob_header('post-admin-header-child', 'post_entries-header-child', '_types/post_entries/header/_header.html')}} - - {% from '_types/post/admin/header/_header.html' import header_row with context %} - {{ header_row(oob=True) }} -{% endblock %} - - -{% block mobile_menu %} - {% include '_types/post_entries/_nav.html' %} -{% endblock %} - - -{% block content %} - {% include "_types/post_entries/_main_panel.html" %} -{% endblock %} - - diff --git a/templates/_types/post_entries/header/_header.html b/templates/_types/post_entries/header/_header.html deleted file mode 100644 index 019c000..0000000 --- a/templates/_types/post_entries/header/_header.html +++ /dev/null @@ -1,17 +0,0 @@ -{% import 'macros/links.html' as links %} -{% macro header_row(oob=False) %} - {% call links.menu_row(id='post_entries-row', oob=oob) %} - {% call links.link(url_for('blog.post.admin.entries', slug=post.slug), hx_select_search) %} - -
    - entries -
    - {% endcall %} - {% call links.desktop_nav() %} - {% include '_types/post_entries/_nav.html' %} - {% endcall %} - {% endcall %} -{% endmacro %} - - - diff --git a/templates/_types/post_entries/index.html b/templates/_types/post_entries/index.html deleted file mode 100644 index 382d297..0000000 --- a/templates/_types/post_entries/index.html +++ /dev/null @@ -1,19 +0,0 @@ -{% extends '_types/post/admin/index.html' %} - - - -{% block post_admin_header_child %} - {% from '_types/root/_n/macros.html' import index_row with context %} - {% call index_row('post-admin-header-child', '_types/post_entries/header/_header.html') %} - {% block post_entries_header_child %} - {% endblock %} - {% endcall %} -{% endblock %} - -{% block _main_mobile_menu %} - {% include '_types/post_entries/_nav.html' %} -{% endblock %} - -{% block content %} - {% include '_types/post_entries/_main_panel.html' %} -{% endblock %} diff --git a/templates/_types/root/settings/_main_panel.html b/templates/_types/root/settings/_main_panel.html deleted file mode 100644 index 9f4c9a8..0000000 --- a/templates/_types/root/settings/_main_panel.html +++ /dev/null @@ -1,2 +0,0 @@ -
    -
    diff --git a/templates/_types/root/settings/_nav.html b/templates/_types/root/settings/_nav.html deleted file mode 100644 index f9d4420..0000000 --- a/templates/_types/root/settings/_nav.html +++ /dev/null @@ -1,5 +0,0 @@ -{% from 'macros/admin_nav.html' import admin_nav_item %} -{{ admin_nav_item(url_for('menu_items.list_menu_items'), 'bars', 'Menu Items', select_colours) }} -{{ admin_nav_item(url_for('snippets.list_snippets'), 'puzzle-piece', 'Snippets', select_colours) }} -{{ admin_nav_item(url_for('blog.tag_groups_admin.index'), 'tags', 'Tag Groups', select_colours) }} -{{ admin_nav_item(url_for('settings.cache'), 'refresh', 'Cache', select_colours) }} diff --git a/templates/_types/root/settings/_oob_elements.html b/templates/_types/root/settings/_oob_elements.html deleted file mode 100644 index fbe1bf3..0000000 --- a/templates/_types/root/settings/_oob_elements.html +++ /dev/null @@ -1,26 +0,0 @@ -{% extends 'oob_elements.html' %} - -{# OOB elements for HTMX navigation - all elements that need updating #} - -{# Import shared OOB macros #} -{% from '_types/root/header/_oob_.html' import root_header with context %} - -{% block oobs %} - - {% from '_types/root/_n/macros.html' import oob_header with context %} - {{oob_header('root-header-child', 'root-settings-header-child', '_types/root/settings/header/_header.html')}} - - {% from '_types/root/header/_header.html' import header_row with context %} - {{ header_row(oob=True) }} -{% endblock %} - - -{% block mobile_menu %} -{% include '_types/root/settings/_nav.html' %} -{% endblock %} - - -{% block content %} - {% include '_types/root/settings/_main_panel.html' %} -{% endblock %} - diff --git a/templates/_types/root/settings/cache/_header.html b/templates/_types/root/settings/cache/_header.html deleted file mode 100644 index 64f8535..0000000 --- a/templates/_types/root/settings/cache/_header.html +++ /dev/null @@ -1,9 +0,0 @@ -{% import 'macros/links.html' as links %} -{% macro header_row(oob=False) %} - {% call links.menu_row(id='cache-row', oob=oob) %} - {% from 'macros/admin_nav.html' import admin_nav_item %} - {{ admin_nav_item(url_for('settings.cache'), 'refresh', 'Cache', select_colours, aclass='') }} - {% call links.desktop_nav() %} - {% endcall %} - {% endcall %} -{% endmacro %} diff --git a/templates/_types/root/settings/cache/_main_panel.html b/templates/_types/root/settings/cache/_main_panel.html deleted file mode 100644 index 854012d..0000000 --- a/templates/_types/root/settings/cache/_main_panel.html +++ /dev/null @@ -1,14 +0,0 @@ -
    -
    -
    - - -
    -
    -
    -
    diff --git a/templates/_types/root/settings/cache/_oob_elements.html b/templates/_types/root/settings/cache/_oob_elements.html deleted file mode 100644 index 5989bf7..0000000 --- a/templates/_types/root/settings/cache/_oob_elements.html +++ /dev/null @@ -1,16 +0,0 @@ -{% extends 'oob_elements.html' %} - -{% block oobs %} - {% from '_types/root/_n/macros.html' import oob_header with context %} - {{oob_header('root-settings-header-child', 'cache-header-child', '_types/root/settings/cache/_header.html')}} - - {% from '_types/root/settings/header/_header.html' import header_row with context %} - {{header_row(oob=True)}} -{% endblock %} - -{% block mobile_menu %} -{% endblock %} - -{% block content %} - {% include '_types/root/settings/cache/_main_panel.html' %} -{% endblock %} diff --git a/templates/_types/root/settings/cache/index.html b/templates/_types/root/settings/cache/index.html deleted file mode 100644 index 05706f8..0000000 --- a/templates/_types/root/settings/cache/index.html +++ /dev/null @@ -1,20 +0,0 @@ -{% extends '_types/root/settings/index.html' %} - -{% block root_settings_header_child %} - {% from '_types/root/_n/macros.html' import header with context %} - {% call header() %} - {% from '_types/root/settings/cache/_header.html' import header_row with context %} - {{ header_row() }} -
    - {% block cache_header_child %} - {% endblock %} -
    - {% endcall %} -{% endblock %} - -{% block content %} - {% include '_types/root/settings/cache/_main_panel.html' %} -{% endblock %} - -{% block _main_mobile_menu %} -{% endblock %} diff --git a/templates/_types/root/settings/header/_header.html b/templates/_types/root/settings/header/_header.html deleted file mode 100644 index 69e7c72..0000000 --- a/templates/_types/root/settings/header/_header.html +++ /dev/null @@ -1,11 +0,0 @@ -{% import 'macros/links.html' as links %} -{% macro header_row(oob=False) %} - {% call links.menu_row(id='root-settings-row', oob=oob) %} - {% call links.link(url_for('settings.home'), hx_select_search) %} - {{ links.admin() }} - {% endcall %} - {% call links.desktop_nav() %} - {% include '_types/root/settings/_nav.html' %} - {% endcall %} - {% endcall %} -{% endmacro %} \ No newline at end of file diff --git a/templates/_types/root/settings/index.html b/templates/_types/root/settings/index.html deleted file mode 100644 index 1773f3d..0000000 --- a/templates/_types/root/settings/index.html +++ /dev/null @@ -1,18 +0,0 @@ -{% extends '_types/root/_index.html' %} -{% import 'macros/layout.html' as layout %} - -{% block root_header_child %} - {% from '_types/root/_n/macros.html' import index_row with context %} - {% call index_row('root-settings-header-child', '_types/root/settings/header/_header.html') %} - {% block root_settings_header_child %} - {% endblock %} - {% endcall %} -{% endblock %} - -{% block _main_mobile_menu %} - {% include '_types/root/settings/_nav.html' %} -{% endblock %} - -{% block content %} - {% include '_types/root/settings/_main_panel.html' %} -{% endblock %} \ No newline at end of file diff --git a/templates/_types/snippets/_list.html b/templates/_types/snippets/_list.html deleted file mode 100644 index 2b982ca..0000000 --- a/templates/_types/snippets/_list.html +++ /dev/null @@ -1,73 +0,0 @@ -
    - {% if snippets %} -
    - {% for s in snippets %} -
    - {# Name #} -
    -
    {{ s.name }}
    -
    - {% if s.user_id == g.user.id %} - You - {% else %} - User #{{ s.user_id }} - {% endif %} -
    -
    - - {# Visibility badge #} - {% set badge_colours = { - 'private': 'bg-stone-200 text-stone-700', - 'shared': 'bg-blue-100 text-blue-700', - 'admin': 'bg-amber-100 text-amber-700', - } %} - - {{ s.visibility }} - - - {# Admin: inline visibility select #} - {% if is_admin %} - - {% endif %} - - {# Delete button #} - {% if s.user_id == g.user.id or is_admin %} - - {% endif %} -
    - {% endfor %} -
    - {% else %} -
    - -

    No snippets yet. Create one from the blog editor.

    -
    - {% endif %} -
    diff --git a/templates/_types/snippets/_main_panel.html b/templates/_types/snippets/_main_panel.html deleted file mode 100644 index 73b50b7..0000000 --- a/templates/_types/snippets/_main_panel.html +++ /dev/null @@ -1,9 +0,0 @@ -
    -
    -

    Snippets

    -
    - -
    - {% include '_types/snippets/_list.html' %} -
    -
    diff --git a/templates/_types/snippets/_oob_elements.html b/templates/_types/snippets/_oob_elements.html deleted file mode 100644 index a1377cf..0000000 --- a/templates/_types/snippets/_oob_elements.html +++ /dev/null @@ -1,18 +0,0 @@ -{% extends 'oob_elements.html' %} - -{# OOB elements for HTMX navigation - all elements that need updating #} - -{% block oobs %} - {% from '_types/root/_n/macros.html' import oob_header with context %} - {{oob_header('root-settings-header-child', 'snippets-header-child', '_types/snippets/header/_header.html')}} - - {% from '_types/root/settings/header/_header.html' import header_row with context %} - {{header_row(oob=True)}} -{% endblock %} - -{% block mobile_menu %} -{% endblock %} - -{% block content %} - {% include '_types/snippets/_main_panel.html' %} -{% endblock %} diff --git a/templates/_types/snippets/header/_header.html b/templates/_types/snippets/header/_header.html deleted file mode 100644 index 0882518..0000000 --- a/templates/_types/snippets/header/_header.html +++ /dev/null @@ -1,9 +0,0 @@ -{% import 'macros/links.html' as links %} -{% macro header_row(oob=False) %} - {% call links.menu_row(id='snippets-row', oob=oob) %} - {% from 'macros/admin_nav.html' import admin_nav_item %} - {{ admin_nav_item(url_for('snippets.list_snippets'), 'puzzle-piece', 'Snippets', select_colours, aclass='') }} - {% call links.desktop_nav() %} - {% endcall %} - {% endcall %} -{% endmacro %} diff --git a/templates/_types/snippets/index.html b/templates/_types/snippets/index.html deleted file mode 100644 index 90f0106..0000000 --- a/templates/_types/snippets/index.html +++ /dev/null @@ -1,20 +0,0 @@ -{% extends '_types/root/settings/index.html' %} - -{% block root_settings_header_child %} - {% from '_types/root/_n/macros.html' import header with context %} - {% call header() %} - {% from '_types/snippets/header/_header.html' import header_row with context %} - {{ header_row() }} -
    - {% block snippets_header_child %} - {% endblock %} -
    - {% endcall %} -{% endblock %} - -{% block content %} - {% include '_types/snippets/_main_panel.html' %} -{% endblock %} - -{% block _main_mobile_menu %} -{% endblock %}