From acad4bf227de4679bebef27aef48f666e0b2514d Mon Sep 17 00:00:00 2001 From: Talmiz Ahmed <55018280+HashTalmiz@users.noreply.github.com> Date: Thu, 8 Oct 2020 18:38:53 +0530 Subject: [PATCH] fix: Introduce new macros to keep reusable tag navigation items (#81) --- partials/operations/by_tags.html | 68 +++-------------------- partials/operations/by_tags_no_root.html | 66 +++------------------- partials/operations/tag_nav_item_pub.html | 23 ++++++++ partials/operations/tag_nav_item_sub.html | 23 ++++++++ 4 files changed, 61 insertions(+), 119 deletions(-) create mode 100644 partials/operations/tag_nav_item_pub.html create mode 100644 partials/operations/tag_nav_item_sub.html diff --git a/partials/operations/by_tags.html b/partials/operations/by_tags.html index 65e9392f9..c782a1ce3 100644 --- a/partials/operations/by_tags.html +++ b/partials/operations/by_tags.html @@ -1,3 +1,6 @@ +{% from "./tag_nav_item_sub.html" import tagNavItemSub %} +{% from "./tag_nav_item_pub.html" import tagNavItemPub %} + {% if asyncapi.hasTags() %} {% for categorytags in asyncapi.tags() %}