diff --git a/templates/_types/blog/_card.html b/templates/_types/blog/_card.html index 1011676..d5b1347 100644 --- a/templates/_types/blog/_card.html +++ b/templates/_types/blog/_card.html @@ -76,14 +76,9 @@
{% 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 }}
diff --git a/templates/_types/post/_entry_items.html b/templates/_types/post/_entry_items.html index d913fe3..3a7b04f 100644 --- a/templates/_types/post/_entry_items.html +++ b/templates/_types/post/_entry_items.html @@ -4,14 +4,9 @@ {% 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 %} diff --git a/templates/_types/post/admin/_nav.html b/templates/_types/post/admin/_nav.html index fc206fe..7296d15 100644 --- a/templates/_types/post/admin/_nav.html +++ b/templates/_types/post/admin/_nav.html @@ -1,7 +1,9 @@ {% import 'macros/links.html' as links %} -{% call links.link(url_for('blog.post.calendars.home', slug=post.slug), hx_select_search, select_colours, True, aclass=styles.nav_button) %} - calendars -{% endcall %} + {% call links.link(url_for('blog.post.admin.entries', slug=post.slug), hx_select_search, select_colours, True, aclass=styles.nav_button) %} entries {% endcall %} diff --git a/templates/_types/post/admin/_nav_entries.html b/templates/_types/post/admin/_nav_entries.html deleted file mode 100644 index 8d9cbd9..0000000 --- a/templates/_types/post/admin/_nav_entries.html +++ /dev/null @@ -1,66 +0,0 @@ - - {# Left scroll arrow - desktop only #} - - - {# Entries and Calendars container #} -
-
- {# Associated Entries #} - {% if associated_entries and associated_entries.entries %} - {% include '_types/post/_entry_items.html' with context %} - {% endif %} - - {# Calendars #} - {% for calendar in calendars %} - {% set local_href=url_for('blog.post.calendars.calendar.get', slug=post.slug, calendar_slug=calendar.slug) %} - {% set href=local_href|host %} - - -
{{calendar.name}}
-
- {% endfor %} -
-
- - - - {# Right scroll arrow - desktop only #} -